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

Need to determine native mech value at runtime

XMLWordPrintable

      Solaris libsoftcrypto/ucrypto library added several new mechanisms and as a result, they re-ordered the mechanisms inside enum ucrypto_mech. As a result,

      SHA1withRSA was 34, now it is 37
      SHA256withRSA was 35, now it is 39
      SHA384withRSA was 36, now it is 40
      SHA512withRSA was 37, now it is 41
      MD5withRSA was 33, now it's 36.

      This leads to unexpected failures since OracleUcrypto still uses the old native mech values, i.e. uses 34 when java apps requests SHA1withRSA algo.

            valeriep Valerie Peng
            valeriep Valerie Peng
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: