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