diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-09-20 15:19:15 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-09-20 15:19:15 +0700 |
commit | d438290428230551ff568329478b0e45e5085b44 (patch) | |
tree | 423683961e53d42c709660dc4838d1bfb02f4a07 /crypto/src/x509/X509V2AttributeCertificateGenerator.cs | |
parent | Update Asn1.Cmp from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-d438290428230551ff568329478b0e45e5085b44.tar.xz |
Give IStreamCalculator a generic type
Diffstat (limited to 'crypto/src/x509/X509V2AttributeCertificateGenerator.cs')
-rw-r--r-- | crypto/src/x509/X509V2AttributeCertificateGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/x509/X509V2AttributeCertificateGenerator.cs b/crypto/src/x509/X509V2AttributeCertificateGenerator.cs index 3e1a58e49..1cb239e87 100644 --- a/crypto/src/x509/X509V2AttributeCertificateGenerator.cs +++ b/crypto/src/x509/X509V2AttributeCertificateGenerator.cs @@ -119,13 +119,13 @@ namespace Org.BouncyCastle.X509 AttributeCertificateInfo acInfo = acInfoGen.GenerateAttributeCertificateInfo(); - IStreamCalculator streamCalculator = signatureFactory.CreateCalculator(); + IStreamCalculator<IBlockResult> streamCalculator = signatureFactory.CreateCalculator(); using (Stream sigStream = streamCalculator.Stream) { acInfo.EncodeTo(sigStream, Asn1Encodable.Der); } - var signature = ((IBlockResult)streamCalculator.GetResult()).Collect(); + var signature = streamCalculator.GetResult().Collect(); return new X509V2AttributeCertificate( new AttributeCertificate(acInfo, sigAlgID, new DerBitString(signature))); |