From 3f6df59e53bbc3a2ceab85b97e46c4c2a04d4707 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 18 Jul 2020 01:32:41 +0700 Subject: Support RSASSA-PSS as keypair generator alg --- crypto/src/security/GeneratorUtilities.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/src') 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") -- cgit 1.4.1