diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-09 16:58:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-09 16:58:56 +0700 |
commit | 2db852aaef49cf79e953e16f088e2190aef641f1 (patch) | |
tree | 3ef973b7b16ac2d7615a744b408e5d2e75e18d2b /crypto/src/cms/CMSSignedData.cs | |
parent | Remove NET7_0 directive for now (diff) | |
download | BouncyCastle.NET-ed25519-2db852aaef49cf79e953e16f088e2190aef641f1.tar.xz |
Simplify digest calculation
Diffstat (limited to 'crypto/src/cms/CMSSignedData.cs')
-rw-r--r-- | crypto/src/cms/CMSSignedData.cs | 4 |
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 { |