RC4 is not supported in JSS

NEW
Unassigned

Status

JSS
Library
13 years ago
8 years ago

People

(Reporter: Sandeep Konchady, Unassigned)

Tracking

Details

(Reporter)

Description

13 years ago
Using SymKeyGen test I tested RC4 and it seems to fail due to the following error.

RC4 encryption failed
Error constructing implementation (algorithm: RC4, provider: Mozilla-JSS, class: org.mozilla.jss.provider.javax.crypto.JSSKeyGeneratorSpi$RC4)
java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: RC4, provider: Mozilla-JSS, class: org.mozilla.jss.provider.javax.crypto.JSSKeyGeneratorSpi$RC4)
        at java.security.Provider$Service.newInstance(Provider.java:1099)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
        at javax.crypto.SunJCE_b.a(DashoA12275)
        at javax.crypto.KeyGenerator.getInstance(DashoA12275)
        at org.mozilla.jss.tests.SymKeyGen.main(SymKeyGen.java:112)
Caused by: org.mozilla.jss.crypto.TokenRuntimeException: RC4 is not supported by this token
        at org.mozilla.jss.provider.javax.crypto.JSSKeyGeneratorSpi.<init>(JSSKeyGeneratorSpi.java:65)
        at org.mozilla.jss.provider.javax.crypto.JSSKeyGeneratorSpi$RC4.<init>(JSSKeyGeneratorSpi.java:124)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at java.security.Provider$Service.newInstance(Provider.java:1075)
        ... 4 more

Updated

13 years ago
Assignee: wtchang → glen.beasley

Comment 1

13 years ago
The traditional JSS library RC4 implemenation works for a sample see SymKeyGen.java which is added to all.pl in bug 313798. 
Mozilla-JSS's implementation needs to be looked into see JCASymKeyGen.java. 
QA Contact: libraries
QA Contact: libraries → jss-qa

Updated

8 years ago
Assignee: gbmozilla → nobody
You need to log in before you can comment on or make changes to this bug.