summary refs log tree commit diff
path: root/crypto/src/x509/X509V2CRLGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/x509/X509V2CRLGenerator.cs')
-rw-r--r--crypto/src/x509/X509V2CRLGenerator.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/x509/X509V2CRLGenerator.cs b/crypto/src/x509/X509V2CRLGenerator.cs
index ef0464a82..c7295f5db 100644
--- a/crypto/src/x509/X509V2CRLGenerator.cs
+++ b/crypto/src/x509/X509V2CRLGenerator.cs
@@ -229,9 +229,9 @@ namespace Org.BouncyCastle.X509
         /// </summary>
         /// <param name="signatureCalculator">A signature calculator with the necessary algorithm details.</param>
         /// <returns>An X509Crl.</returns>
-        public X509Crl Generate(ISignatureCalculator<AlgorithmIdentifier> signatureCalculator)
+        public X509Crl Generate(ISignatureCalculator signatureCalculator)
         {
-            tbsGen.SetSignature(signatureCalculator.AlgorithmDetails);
+            tbsGen.SetSignature((AlgorithmIdentifier)signatureCalculator.AlgorithmDetails);
 
             TbsCertificateList tbsCertList = GenerateCertList();
 
@@ -243,7 +243,7 @@ namespace Org.BouncyCastle.X509
 
             sigStream.Close();
 
-            return GenerateJcaObject(tbsCertList, signatureCalculator.AlgorithmDetails, signatureCalculator.Signature());
+            return GenerateJcaObject(tbsCertList, (AlgorithmIdentifier)signatureCalculator.AlgorithmDetails, signatureCalculator.Signature());
         }
 
         private TbsCertificateList GenerateCertList()