[Bug 914] New: NSS PKCS11 provider fails to handle multipart AES encryption

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Apr 2 17:09:06 PDT 2012


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=914

             Bug #: 914
           Summary: NSS PKCS11 provider fails to handle multipart AES
                    encryption
    Classification: Unclassified
           Product: IcedTea
           Version: 2.1.0
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: ahughes at redhat.com


Input offset size: 1
Unexpected Exception: AES/ECB/NoPadding
java.security.ProviderException: update() failed
        at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:599)
        at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:496)
        at javax.crypto.Cipher.update(Cipher.java:1701)
        at TestAES.testCipherOffset(TestAES.java:158)
        at TestAES.doTest(TestAES.java:66)
        at UcryptoTest.main(UcryptoTest.java:60)
        at TestAES.main(TestAES.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:722)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DATA_LEN_RANGE
        at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
        at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:551)
        ... 12 more
Unexpected Exception: AES/CBC/NoPadding
java.security.InvalidKeyException: Could not initialize cipher
        at sun.security.pkcs11.P11Cipher.implInit(P11Cipher.java:384)
        at sun.security.pkcs11.P11Cipher.engineInit(P11Cipher.java:328)
        at javax.crypto.Cipher.init(Cipher.java:1312)
        at TestAES.testCipherOffset(TestAES.java:154)
        at TestAES.doTest(TestAES.java:66)
        at UcryptoTest.main(UcryptoTest.java:60)
        at TestAES.main(TestAES.java:55)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:722)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DATA_LEN_RANGE
        at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
        at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:551)
        ... 12 more

Data is believed to not be padded.

-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the distro-pkg-dev mailing list