summary refs log tree commit diff
path: root/crypto/src/cms/CMSSignedGenerator.cs
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2021-05-23 14:02:47 +1000
committerDavid Hook <dgh@bouncycastle.org>2021-05-23 14:02:47 +1000
commit6e06829728168f62bf9fe9e42c1c4d4a2136711e (patch)
tree0e2bcfe331aad934dd23dbbdf47e0aaf02a75dff /crypto/src/cms/CMSSignedGenerator.cs
parentgithub #283 added extra features fields, corrected parsing for new draft (diff)
downloadBouncyCastle.NET-ed25519-6e06829728168f62bf9fe9e42c1c4d4a2136711e.tar.xz
github #250 lookup table error
Diffstat (limited to '')
-rw-r--r--crypto/src/cms/CMSSignedGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedGenerator.cs b/crypto/src/cms/CMSSignedGenerator.cs
index d89d4e5b4..95d5ba65b 100644
--- a/crypto/src/cms/CMSSignedGenerator.cs
+++ b/crypto/src/cms/CMSSignedGenerator.cs
@@ -120,9 +120,9 @@ namespace Org.BouncyCastle.Cms
             algorithms["SHA1WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha1;
             algorithms["ECDSAWITHSHA1"] = X9ObjectIdentifiers.ECDsaWithSha1;
             algorithms["SHA224WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha224;
-            algorithms["SHA256WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha224;
+            algorithms["SHA256WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha256;
             algorithms["SHA384WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha384;
-            algorithms["SHA512WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha256;
+            algorithms["SHA512WITHECDSA"] = X9ObjectIdentifiers.ECDsaWithSha512;
 
 
             algorithms["GOST3411WITHGOST3410"] = CryptoProObjectIdentifiers.GostR3411x94WithGostR3410x94;