8233801: GCMEmptyIv.java test fails on Solaris 11.4
Reviewed-by: valeriep
This commit is contained in:
parent
9a4c25731e
commit
a0b8244416
@ -324,6 +324,9 @@ final class P11AEADCipher extends CipherSpi {
|
||||
try {
|
||||
initialize();
|
||||
} catch (PKCS11Exception e) {
|
||||
if (e.getErrorCode() == CKR_MECHANISM_PARAM_INVALID) {
|
||||
throw new InvalidAlgorithmParameterException("Bad params", e);
|
||||
}
|
||||
throw new InvalidKeyException("Could not initialize cipher", e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user