Blame SOURCES/jss-standardize-ECC-algorithm-names.patch

c89ed9
# HG changeset patch
c89ed9
# User David Stutzman<david.konrad.stutzman@us.army.mil>
c89ed9
# Date 1515722400 28800
c89ed9
#      Thu Jan 11 18:00:00 2018 -0800
c89ed9
# Node ID 8746a3fc74785e2fd12f86d08a6886ed9160620e
c89ed9
# Parent  9e2db7eee6652330723d935c2b900b9b09b1ab9d
c89ed9
Bug 589158 Add support for Java Security Standard Algorithm Names for EC Signature types
c89ed9
c89ed9
This patch adds the aliases for Java Security Standard Algorithm Names for EC Signature types.
c89ed9
c89ed9
cfu for dstutzman (reviewed by wtc)
c89ed9
c89ed9
diff --git a/org/mozilla/jss/JSSProvider.java b/org/mozilla/jss/JSSProvider.java
c89ed9
--- a/org/mozilla/jss/JSSProvider.java
c89ed9
+++ b/org/mozilla/jss/JSSProvider.java
c89ed9
@@ -79,21 +79,25 @@
c89ed9
         put("Alg.Alias.Signature.SHA-1/EC", "SHA1withEC");
c89ed9
         put("Alg.Alias.Signature.SHA/ECDSA", "SHA1withEC");
c89ed9
         put("Alg.Alias.Signature.SHA1/ECDSA", "SHA1withEC");
c89ed9
+        put("Alg.Alias.Signature.SHA1withECDSA", "SHA1withEC"); //JCE Standard Name
c89ed9
 
c89ed9
         put("Signature.SHA256withEC",
c89ed9
             "org.mozilla.jss.provider.java.security.JSSSignatureSpi$SHA256EC");
c89ed9
         put("Alg.Alias.Signature.SHA256/EC", "SHA256withEC");
c89ed9
         put("Alg.Alias.Signature.SHA-256/EC", "SHA256withEC");
c89ed9
+        put("Alg.Alias.Signature.SHA256withECDSA", "SHA256withEC"); //JCE Standard Name
c89ed9
 
c89ed9
         put("Signature.SHA384withEC",
c89ed9
             "org.mozilla.jss.provider.java.security.JSSSignatureSpi$SHA384EC");
c89ed9
         put("Alg.Alias.Signature.SHA384/EC", "SHA384withEC");
c89ed9
         put("Alg.Alias.Signature.SHA-384/EC", "SHA384withEC");
c89ed9
+        put("Alg.Alias.Signature.SHA384withECDSA", "SHA384withEC"); //JCE Standard Name
c89ed9
 
c89ed9
         put("Signature.SHA512withEC",
c89ed9
             "org.mozilla.jss.provider.java.security.JSSSignatureSpi$SHA512EC");
c89ed9
         put("Alg.Alias.Signature.SHA512/EC", "SHA512withEC");
c89ed9
         put("Alg.Alias.Signature.SHA-512/EC", "SHA512withEC");
c89ed9
+        put("Alg.Alias.Signature.SHA512withECDSA", "SHA512withEC"); //JCE Standard Name
c89ed9
 
c89ed9
         /////////////////////////////////////////////////////////////
c89ed9
         // Message Digesting