Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129560

TestKeyPairGenerator.java fails on Solaris because private exponent needs to comply with FIPS 186-4

    XMLWordPrintable

    Details

      Backports

        Description

        Test case : sun/security/pkcs11/rsa/TestKeyPairGenerator.java
        Exception:
        Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
        at sun.security.pkcs11.wrapper.PKCS11.C_GenerateKeyPair(Native Method)
        at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:378)

        Description:
        Solaris environment that got the changes to disallow exponent value 3 for RSA, based on security guidance. Java test to be updated to associate the changes.

        Sample Code:
        KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", provider);
        kpg.initialize(new RSAKeyGenParameterSpec(len, exp)); // len=512 & exp=BigInteger.valueOf(3)


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bgopularam Bhanu Prakash Gopularam (Inactive)
                Reporter:
                ssahoo Sibabrata Sahoo
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: