From d438290428230551ff568329478b0e45e5085b44 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 20 Sep 2022 15:19:15 +0700 Subject: Give IStreamCalculator a generic type --- crypto/src/cms/CMSSignedDataGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/cms') 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 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) -- cgit 1.4.1