summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-03-25 22:36:55 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-03-25 22:36:55 +0700
commitcbd8f700e65fc66dced3a4a0ae75213a2ade0eb7 (patch)
treea4b2f33b350d2edd2568296b7059b7de1603f041 /crypto/src
parentMerge branch 'duplicatedigest' of https://github.com/mpsinfo/bc-csharp into m... (diff)
downloadBouncyCastle.NET-ed25519-cbd8f700e65fc66dced3a4a0ae75213a2ade0eb7.tar.xz
Formatting
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/cms/CMSSignedDataGenerator.cs3
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);