diff options
Diffstat (limited to 'crypto/src/tsp/TimeStampTokenGenerator.cs')
-rw-r--r-- | crypto/src/tsp/TimeStampTokenGenerator.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/tsp/TimeStampTokenGenerator.cs b/crypto/src/tsp/TimeStampTokenGenerator.cs index 0d6d102d3..79b8c6a3a 100644 --- a/crypto/src/tsp/TimeStampTokenGenerator.cs +++ b/crypto/src/tsp/TimeStampTokenGenerator.cs @@ -80,7 +80,7 @@ namespace Org.BouncyCastle.Tsp try { - IStreamCalculator calculator = digestCalculator.CreateCalculator(); + IStreamCalculator<IBlockResult> calculator = digestCalculator.CreateCalculator(); Stream stream = calculator.Stream; byte[] certEnc = assocCert.GetEncoded(); stream.Write(certEnc, 0, certEnc.Length); @@ -90,7 +90,7 @@ namespace Org.BouncyCastle.Tsp if (((AlgorithmIdentifier)digestCalculator.AlgorithmDetails).Algorithm.Equals(OiwObjectIdentifiers.IdSha1)) { EssCertID essCertID = new EssCertID( - ((IBlockResult)calculator.GetResult()).Collect(), + calculator.GetResult().Collect(), isIssuerSerialIncluded ? new IssuerSerial( new GeneralNames( @@ -107,7 +107,7 @@ namespace Org.BouncyCastle.Tsp ((AlgorithmIdentifier)digestCalculator.AlgorithmDetails).Algorithm); EssCertIDv2 essCertID = new EssCertIDv2( - ((IBlockResult)calculator.GetResult()).Collect(), + calculator.GetResult().Collect(), isIssuerSerialIncluded ? new IssuerSerial( new GeneralNames( |