summary refs log tree commit diff
path: root/crypto/src/cms/CMSSignedData.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-09 16:58:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-09 16:58:56 +0700
commit2db852aaef49cf79e953e16f088e2190aef641f1 (patch)
tree3ef973b7b16ac2d7615a744b408e5d2e75e18d2b /crypto/src/cms/CMSSignedData.cs
parentRemove NET7_0 directive for now (diff)
downloadBouncyCastle.NET-ed25519-2db852aaef49cf79e953e16f088e2190aef641f1.tar.xz
Simplify digest calculation
Diffstat (limited to 'crypto/src/cms/CMSSignedData.cs')
-rw-r--r--crypto/src/cms/CMSSignedData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedData.cs b/crypto/src/cms/CMSSignedData.cs
index 773e15be0..10278784e 100644
--- a/crypto/src/cms/CMSSignedData.cs
+++ b/crypto/src/cms/CMSSignedData.cs
@@ -116,7 +116,7 @@ namespace Org.BouncyCastle.Cms
 			if (signedData.EncapContentInfo.Content != null)
 			{
 				this.signedContent = new CmsProcessableByteArray(
-					((Asn1OctetString)(signedData.EncapContentInfo.Content)).GetOctets());
+					((Asn1OctetString)signedData.EncapContentInfo.Content).GetOctets());
 			}
 //			else
 //			{
@@ -152,7 +152,7 @@ namespace Org.BouncyCastle.Cms
 					}
 					else if (m_hashes.TryGetValue(info.DigestAlgorithm.Algorithm.Id, out var hash))
 					{
-						signerInfos.Add(new SignerInformation(info, contentType, null, new BaseDigestCalculator(hash)));
+						signerInfos.Add(new SignerInformation(info, contentType, null, hash));
 					}
 					else
                     {