-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.3.0
-
sparc
-
solaris_7
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.
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.
- duplicates
-
JDK-4297026 RSA Keypair generation using java.security.spec.RSAKeyGenParameterSpec fails
-
- Resolved
-
- relates to
-
JDK-4221302 Need to add parameter specification class for RSA keypair generation
-
- Resolved
-