summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-07-18 01:32:41 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-07-18 01:32:41 +0700
commit3f6df59e53bbc3a2ceab85b97e46c4c2a04d4707 (patch)
tree3e0dcf467aa2d32fcb007cfbf5cccd279b6589cb
parentRemove unused code (diff)
downloadBouncyCastle.NET-ed25519-3f6df59e53bbc3a2ceab85b97e46c4c2a04d4707.tar.xz
Support RSASSA-PSS as keypair generator alg
-rw-r--r--crypto/src/security/GeneratorUtilities.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/security/GeneratorUtilities.cs b/crypto/src/security/GeneratorUtilities.cs
index f39d583d6..8eae2f3cf 100644
--- a/crypto/src/security/GeneratorUtilities.cs
+++ b/crypto/src/security/GeneratorUtilities.cs
@@ -200,6 +200,7 @@ namespace Org.BouncyCastle.Security
                 "GOST-3410-94");
             AddKpgAlgorithm("RSA",
                 "1.2.840.113549.1.1.1");
+            AddKpgAlgorithm("RSASSA-PSS");
             AddKpgAlgorithm("X25519",
                 EdECObjectIdentifiers.id_X25519);
             AddKpgAlgorithm("X448",
@@ -349,7 +350,7 @@ namespace Org.BouncyCastle.Security
             if (canonicalName == "GOST3410")
                 return new Gost3410KeyPairGenerator();
 
-            if (canonicalName == "RSA")
+            if (canonicalName == "RSA" || canonicalName == "RSASSA-PSS")
                 return new RsaKeyPairGenerator();
 
             if (canonicalName == "X25519")