diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-25 22:36:55 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-25 22:36:55 +0700 |
commit | cbd8f700e65fc66dced3a4a0ae75213a2ade0eb7 (patch) | |
tree | a4b2f33b350d2edd2568296b7059b7de1603f041 /crypto | |
parent | Merge branch 'duplicatedigest' of https://github.com/mpsinfo/bc-csharp into m... (diff) | |
download | BouncyCastle.NET-ed25519-cbd8f700e65fc66dced3a4a0ae75213a2ade0eb7.tar.xz |
Formatting
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/cms/CMSSignedDataGenerator.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/cms/CMSSignedDataGenerator.cs b/crypto/src/cms/CMSSignedDataGenerator.cs index 1659a4117..114b9631d 100644 --- a/crypto/src/cms/CMSSignedDataGenerator.cs +++ b/crypto/src/cms/CMSSignedDataGenerator.cs @@ -98,9 +98,10 @@ namespace Org.BouncyCastle.Cms ISigner sig = Helper.GetSignatureInstance(signatureName); byte[] hash; - if (outer._digests.Contains(digestOID)) + { hash = (byte[])outer._digests[digestOID]; + } else { IDigest dig = Helper.GetDigestInstance(digestName); |