RFR: 8233801:GCMEmptyIv.java test fails on Solaris 11.4
Valerie Peng
valerie.peng at oracle.com
Wed Nov 20 22:22:52 UTC 2019
Sure, changes look good.
Valerie
On 11/19/2019 6:37 AM, Seán Coffey wrote:
>
> Seeing an internal test failure on Solaris 11.4. Appears connected
> with the recent upgrade of PKCS11 libraries to v2.40. The test
> coverage has increased since SunPKCS11-Solaris now supports AES/GCM.
> Unfortunately the bug details are not public but I'll give a summary here.
>
> The new test code coverage provokes a CKR_MECHANISM_PARAM_INVALID
> error from the underlying provider and the test expects
> InvalidAlgorithmParameterException to be thrown by the Provider.
> InvalidKeyException is currently thrown by SunPKCS11-Solaris. The
> patch is quite trivial:
>
>> +++ b/src/share/classes/sun/security/pkcs11/P11AEADCipher.java
>> @@ -322,6 +322,9 @@
>> 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);
>> }
>> }
>
> regards,
> Sean.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/security-dev/attachments/20191120/a45bf85b/attachment.htm>
More information about the security-dev
mailing list