3b13d8
From 3a12e8892984a96088e3d2b4a65188db60d91564 Mon Sep 17 00:00:00 2001
3b13d8
From: Jack Magne <jmagne@localhost.localdomain>
3b13d8
Date: Wed, 20 May 2020 16:50:24 -0700
3b13d8
Subject: [PATCH 1/8] Related: Bug 1710105 - JSS: add RSA PSS support
3b13d8
3b13d8
Add PSS cases to algorithm name translating method.
3b13d8
---
3b13d8
 org/mozilla/jss/netscape/security/util/Cert.java | 7 +++++++
3b13d8
 1 file changed, 7 insertions(+)
3b13d8
3b13d8
diff --git a/org/mozilla/jss/netscape/security/util/Cert.java b/org/mozilla/jss/netscape/security/util/Cert.java
3b13d8
index ccbbcc0..bcd04b6 100644
3b13d8
--- a/org/mozilla/jss/netscape/security/util/Cert.java
3b13d8
+++ b/org/mozilla/jss/netscape/security/util/Cert.java
3b13d8
@@ -63,6 +63,13 @@ public class Cert {
3b13d8
             return SignatureAlgorithm.ECSignatureWithSHA384Digest;
3b13d8
         else if (algname.equals("SHA512withEC"))
3b13d8
             return SignatureAlgorithm.ECSignatureWithSHA512Digest;
3b13d8
+       else if (algname.equals("SHA256withRSA/PSS"))
3b13d8
+            return SignatureAlgorithm.RSAPSSSignatureWithSHA256Digest;
3b13d8
+        else if (algname.equals("SHA384withRSA/PSS"))
3b13d8
+            return SignatureAlgorithm.RSAPSSSignatureWithSHA384Digest;
3b13d8
+        else if (algname.equals("SHA512withRSA/PSS"))
3b13d8
+            return SignatureAlgorithm.RSAPSSSignatureWithSHA512Digest;
3b13d8
+
3b13d8
         return null;
3b13d8
     }
3b13d8
 
3b13d8
-- 
3b13d8
1.8.3.1
3b13d8