diff options
Diffstat (limited to 'crypto/src/crmf/CertificateRequestMessage.cs')
-rw-r--r-- | crypto/src/crmf/CertificateRequestMessage.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crmf/CertificateRequestMessage.cs b/crypto/src/crmf/CertificateRequestMessage.cs index c733eecbb..0a246aaa4 100644 --- a/crypto/src/crmf/CertificateRequestMessage.cs +++ b/crypto/src/crmf/CertificateRequestMessage.cs @@ -190,7 +190,7 @@ namespace Org.BouncyCastle.Crmf private bool verifySignature(IVerifierFactoryProvider verifierFactoryProvider, PopoSigningKey signKey) { IVerifierFactory verifer; - IStreamCalculator calculator; + IStreamCalculator<IVerifier> calculator; try { verifer = verifierFactoryProvider.CreateVerifierFactory(signKey.AlgorithmIdentifier); @@ -212,7 +212,7 @@ namespace Org.BouncyCastle.Crmf calculator.Stream.Write(b, 0, b.Length); } - DefaultVerifierResult result = (DefaultVerifierResult)calculator.GetResult(); + IVerifier result = calculator.GetResult(); return result.IsVerified(signKey.Signature.GetBytes()); } |