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

can not use RSAKeyGenParameterSpec to initialize KeyPairGenerator

    XMLWordPrintable

    Details

      Description

      I try to use RSAKeyGenParameterSpec to initialize KeyPairGenerator, but the following exception come up

      java.security.InvalidAlgorithmParameterException: Parameter spec not RSA key pair gen.
      at com.sun.rsajca.JSA_RSAKeyPairGenerator.getKeyPairGenParameters([DashoPro-V1.2-120198])
      at com.sun.rsajca.JS_KeyPairGenerator.initialize([DashoPro-V1.2-120198])
      at java.security.KeyPairGenerator$Delegate.initialize(Unknown Source)
      at java.security.KeyPairGenerator.initialize(Unknown Source)
      at TestRSAKeyGenParameterSpec.generateKeys(TestRSAKeyGenParameterSpec.java:81)
      at TestRSAKeyGenParameterSpec.main(TestRSAKeyGenParameterSpec.java:36)
      Exception in thread "main"

      see attachment for testing program.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              skesunw Stuart Ke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: