diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 21:23:28 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-23 21:23:28 +0700 |
commit | 1ee676be089e943509d7092aa116c448aae75971 (patch) | |
tree | 559e469d851746da190a2278d2772f37bbcf72a0 /crypto/src/security/GeneratorUtilities.cs | |
parent | Refactoring in SP80038G (diff) | |
download | BouncyCastle.NET-ed25519-1ee676be089e943509d7092aa116c448aae75971.tar.xz |
Add Gost2012 algorithms to registries
- see https://github.com/bcgit/bc-csharp/pull/217
Diffstat (limited to 'crypto/src/security/GeneratorUtilities.cs')
-rw-r--r-- | crypto/src/security/GeneratorUtilities.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/src/security/GeneratorUtilities.cs b/crypto/src/security/GeneratorUtilities.cs index c48a71f2e..5e670b7c2 100644 --- a/crypto/src/security/GeneratorUtilities.cs +++ b/crypto/src/security/GeneratorUtilities.cs @@ -222,6 +222,8 @@ namespace Org.BouncyCastle.Security AddKpgAlgorithm("ECGOST3410", "ECGOST-3410", "GOST-3410-2001"); + AddKpgAlgorithm("ECGOST3410-2012", + "GOST-3410-2012"); AddKpgAlgorithm("Ed25519", "Ed25519ctx", "Ed25519ph", @@ -358,7 +360,7 @@ namespace Org.BouncyCastle.Security if (canonicalName == "DSA") return new DsaKeyPairGenerator(); - // "EC", "ECDH", "ECDHC", "ECDSA", "ECGOST3410", "ECMQV" + // "EC", "ECDH", "ECDHC", "ECDSA", "ECGOST3410", "ECGOST3410-2012", "ECMQV" if (Platform.StartsWith(canonicalName, "EC")) return new ECKeyPairGenerator(canonicalName); |