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

jce/ECC test fails for SunPKCS11 provider using nss library

XMLWordPrintable

      TESTFAIL:sun/security/pkcs11/ec/ReadCertificates.java
      TESTFAIL:sun/security/pkcs11/ec/ReadPKCS12.java
      TESTFAIL:sun/security/pkcs11/ec/TestECDSA.java
      TESTFAIL:sun/security/pkcs11/Secmod/AddPrivateKey.java
      TESTFAIL:sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java
      TESTFAIL:sun/security/tools/jarsigner/ec.sh

      ----------

      The following test fails if nss library is being used through SunPKCS11 provider:

      jce/ECC

      Test log:
      /java/sqe/results/security/promotion/7/b111/gtee/oel5.5-x64-32_c1/7-b111_promotion_security_oel5.5-x64-32_c1/ResultDir/ECC/

      There are multiple test case in this test. Running test case, TestECDSA, will shows the issue.

      Steps to reproduce:

      amd-susew $cd
      /java/sqe/results/security/promotion/7/b111/gtee/oel5.5-x64-32_c1/7-b111_promotion_security_oel5.5-x64-32_c1/ResultDir/ECC

      amd-susew $export LD_LIBRARY_PATH=/java/sqe/comp//jsn/all_workspace/7_int/security/tools/lib/nss/Linux2.6

      amd-susew $/java/re/jdk/7/promoted/all/b111/binaries/linux-i586/bin/java -cp . TestECDSA
      FAIL: java.lang.Exception: Configuration file is required as argument
      amd-susew $/java/re/jdk/7/promoted/all/b111/binaries/linux-i586/bin/java -cp . TestECDSA ecprovider.cfg
      ============================================
      ====Test ECC with SunPKCS11 provider ==========
      ============================================
      FAIL: java.lang.Exception: Result mismatch, actual: false

      The failure seems to start from b89.
      The following test also fails starting from b89.

      JSSE/SSLECC
      More regression tests failing on Solaris 5.10 covered by this CR.

      sun/security/pkcs11/Secmod/AddPrivateKey.java
      sun/security/pkcs11/ec/ReadCertificates.java
      sun/security/pkcs11/ec/ReadPKCS12.java
      sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java

      In the first 3, signature cannot be verified.

      The last one shows

      Caused by: java.lang.RuntimeException: Could not parse key values
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1055)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.getParams(P11Key.java:1080)
      at sun.security.ssl.HandshakeMessage$ECDH_ServerKeyExchange.<init>(HandshakeMessage.java:983)
      at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:774)
      at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:167)
      at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
      at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1031)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1327)
      at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:881)
      at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
      ... 6 more
      Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=105, too big.
      at sun.security.util.DerInputStream.getLength(DerInputStream.java:561)
      at sun.security.util.DerValue.init(DerValue.java:365)
      at sun.security.util.DerValue.<init>(DerValue.java:294)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1041)
      ... 16 more

            vinnie Vincent Ryan
            bsitu Bill Situ
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: