diff options
Diffstat (limited to 'crypto/src/cms')
-rw-r--r-- | crypto/src/cms/CMSSignedDataGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedDataGenerator.cs b/crypto/src/cms/CMSSignedDataGenerator.cs index 3a612a635..c2304a09b 100644 --- a/crypto/src/cms/CMSSignedDataGenerator.cs +++ b/crypto/src/cms/CMSSignedDataGenerator.cs @@ -133,7 +133,7 @@ namespace Org.BouncyCastle.Cms Asn1Set signedAttr = null; - IStreamCalculator calculator = sigCalc.CreateCalculator(); + IStreamCalculator<IBlockResult> calculator = sigCalc.CreateCalculator(); using (Stream sigStr = calculator.Stream) { if (sAttr != null) @@ -165,7 +165,7 @@ namespace Org.BouncyCastle.Cms } } - byte[] sigBytes = ((IBlockResult)calculator.GetResult()).Collect(); + byte[] sigBytes = calculator.GetResult().Collect(); Asn1Set unsignedAttr = null; if (unsAttr != null) |