8171190: Bump reference of NIST 800-57 Part 1 Rev 3 to Rev 4 in JarSigner API spec
authorweijun
Wed, 14 Dec 2016 10:41:06 +0800
changeset 42685 a538ed225637
parent 42684 569aca644163
child 42686 a907a774b802
8171190: Bump reference of NIST 800-57 Part 1 Rev 3 to Rev 4 in JarSigner API spec Reviewed-by: xuelei
jdk/src/java.base/share/classes/sun/security/x509/AlgorithmId.java
jdk/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java
--- a/jdk/src/java.base/share/classes/sun/security/x509/AlgorithmId.java	Wed Dec 14 10:40:59 2016 +0800
+++ b/jdk/src/java.base/share/classes/sun/security/x509/AlgorithmId.java	Wed Dec 14 10:41:06 2016 +0800
@@ -1024,7 +1024,7 @@
         }
     }
 
-    // Values from SP800-57 part 1 rev 3 tables 2 and three
+    // Values from SP800-57 part 1 rev 4 tables 2 and 3
     private static String ecStrength (int bitLength) {
         if (bitLength >= 512) { // 256 bits of strength
             return "SHA512";
@@ -1035,7 +1035,7 @@
         }
     }
 
-    // same values for RSA and DSA
+    // Same values for RSA and DSA
     private static String ifcFfcStrength (int bitLength) {
         if (bitLength > 7680) { // 256 bits
             return "SHA512";
--- a/jdk/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java	Wed Dec 14 10:40:59 2016 +0800
+++ b/jdk/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java	Wed Dec 14 10:41:06 2016 +0800
@@ -430,7 +430,7 @@
          * SHA384withECDSA for a 384-bit EC key.
          *
          * @implNote This implementation makes use of comparable strengths
-         * as defined in Tables 2 and 3 of NIST SP 800-57 Part 1-Rev.3.
+         * as defined in Tables 2 and 3 of NIST SP 800-57 Part 1-Rev.4.
          * Specifically, if a DSA or RSA key with a key size greater than 7680
          * bits, or an EC key with a key size greater than or equal to 512 bits,
          * SHA-512 will be used as the hash function for the signature.