8233801: GCMEmptyIv.java test fails on Solaris 11.4

Reviewed-by: valeriep
This commit is contained in:
Sean Coffey 2019-11-21 11:31:58 +00:00
parent 9a4c25731e
commit a0b8244416

View File

@ -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);
}
}