|
|
b1e4e4 |
From daf32eda6c44690391e56a92802379ae677f01fa Mon Sep 17 00:00:00 2001
|
|
|
b1e4e4 |
From: jmagne <jmagne@redhat.com>
|
|
|
b1e4e4 |
Date: Thu, 7 May 2020 13:20:02 -0400
|
|
|
b1e4e4 |
Subject: [PATCH] Fix to allow the SHA512withRSA/PSS algorithm to operate
|
|
|
b1e4e4 |
properly. (#404)
|
|
|
b1e4e4 |
|
|
|
b1e4e4 |
Previously signature using this alg has had the params malformed within.
|
|
|
b1e4e4 |
|
|
|
b1e4e4 |
Co-authored-by: Jack Magne <jmagne@test.host.com>
|
|
|
b1e4e4 |
(cherry picked from commit 5a3169fa6620cdebbc33c0df14e3759db4cee9ea)
|
|
|
b1e4e4 |
---
|
|
|
b1e4e4 |
base/util/src/netscape/security/x509/AlgorithmId.java | 2 +-
|
|
|
b1e4e4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b1e4e4 |
|
|
|
b1e4e4 |
diff --git a/base/util/src/netscape/security/x509/AlgorithmId.java b/base/util/src/netscape/security/x509/AlgorithmId.java
|
|
|
b1e4e4 |
index a5e4906..54446b5 100644
|
|
|
b1e4e4 |
--- a/base/util/src/netscape/security/x509/AlgorithmId.java
|
|
|
b1e4e4 |
+++ b/base/util/src/netscape/security/x509/AlgorithmId.java
|
|
|
b1e4e4 |
@@ -763,7 +763,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|
|
b1e4e4 |
} else if ("SHA384withRSA/PSS".equals(algName)) {
|
|
|
b1e4e4 |
pssSpec = new PSSParameterSpec("SHA-384", "MGF1", MGF1ParameterSpec.SHA384, 48, 1);
|
|
|
b1e4e4 |
|
|
|
b1e4e4 |
- } else if ("SHA384withRSA/PSS".equals(algName)) {
|
|
|
b1e4e4 |
+ } else if ("SHA512withRSA/PSS".equals(algName)) {
|
|
|
b1e4e4 |
pssSpec = new PSSParameterSpec("SHA-512", "MGF1", MGF1ParameterSpec.SHA512, 64, 1);
|
|
|
b1e4e4 |
}
|
|
|
b1e4e4 |
try {
|
|
|
b1e4e4 |
--
|
|
|
b1e4e4 |
1.8.3.1
|
|
|
b1e4e4 |
|