InvalidKeyException, InvalidAlgorithmParameterException {
if (!DEFSupported) {
fail(NotSupportedMsg);
return;
}
MacSpi spi = new MyMacSpi();
Mac mac = new myMac(spi, defaultProvider, defaultAlgorithm);
assertEquals("Incorrect algorithm", mac.getAlgorithm(),
defaultAlgorithm);
assertEquals("Incorrect provider", mac.getProvider(), defaultProvider);
try {