diff options
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 { |