summary refs log tree commit diff
path: root/crypto/src/cms
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms')
-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);