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

compatibility of JCE1.2.2 and JCE1.2.1 is broken for keystore

    XMLWordPrintable

Details

    Description

      Jce1.2.2 compatibility is broken with Jce1.2.1. My test use jce1.2.2. to create a keystore and store some secret keys, then write to "jceks". Then using jce1.2.1 to load it. an IoException is thrown.

      How to reproduce:
      1. untar the attached test.tar
      2. sh Run.sh

      You will see:
      =========== Using JDK 1.3.1 ==========
      =========== create under jce1.2.2 ==========
      =========== Using JDK 1.3.1 ==========
      =========== retrieve under jce1.2.1 ==========
      ERROR: unexpected exception -
      java.io.IOException: com.sun.crypto.provider.SealedObjectForKeyProtector
              at com.sun.crypto.provider.JceKeyStore.engineLoad([DashoPro-V1.2-120198])
              at java.security.KeyStore.load(KeyStore.java:613)
              at TestJCEDecr.run(TestJCEDecr.java:26)
              at TestJCEDecr.main(TestJCEDecr.java:39)
      STATUS:Failed.
      =========== Using JDK 1.3.1 ==========
      =========== create under jce1.2.1 ==========
      =========== Using JDK 1.3.1 ==========
      =========== retrieve under jce1.2.2 ==========
      STATUS:Passed.

      ###@###.### 2002-05-09

      Attachments

        Activity

          People

            valeriep Valerie Peng
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: