summary refs log tree commit diff
path: root/crypto/src/x509/X509V1CertificateGenerator.cs
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2015-10-12 16:39:22 +1100
committerDavid Hook <dgh@bouncycastle.org>2015-10-12 16:39:22 +1100
commit454a3299691ed04f7be1cf4866af2c3f90621fd2 (patch)
treee4099ef725af5a7ff5f7e418bd91a9c6311a13c1 /crypto/src/x509/X509V1CertificateGenerator.cs
parentInitial cut of signature generation operators. (diff)
downloadBouncyCastle.NET-ed25519-454a3299691ed04f7be1cf4866af2c3f90621fd2.tar.xz
Fixed generics
Diffstat (limited to '')
-rw-r--r--crypto/src/x509/X509V1CertificateGenerator.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/x509/X509V1CertificateGenerator.cs b/crypto/src/x509/X509V1CertificateGenerator.cs
index 8201a66ec..0ab6f4b77 100644
--- a/crypto/src/x509/X509V1CertificateGenerator.cs
+++ b/crypto/src/x509/X509V1CertificateGenerator.cs
@@ -172,9 +172,9 @@ namespace Org.BouncyCastle.X509
 		/// </summary>
 		/// <param name="signatureCalculator">A signature calculator with the necessary algorithm details.</param>
 		/// <returns>An X509Certificate.</returns>
-		public X509Certificate Generate(ISignatureCalculator<AlgorithmIdentifier> signatureCalculator)
+		public X509Certificate Generate(ISignatureCalculator signatureCalculator)
 		{
-			tbsGen.SetSignature (signatureCalculator.AlgorithmDetails);
+			tbsGen.SetSignature ((AlgorithmIdentifier)signatureCalculator.AlgorithmDetails);
 
 			TbsCertificateStructure tbsCert = tbsGen.GenerateTbsCertificate();
 
@@ -186,7 +186,7 @@ namespace Org.BouncyCastle.X509
 
 			sigStream.Close ();
 
-			return GenerateJcaObject(tbsCert, signatureCalculator.AlgorithmDetails, signatureCalculator.Signature());
+			return GenerateJcaObject(tbsCert, (AlgorithmIdentifier)signatureCalculator.AlgorithmDetails, signatureCalculator.Signature());
 		}
 
 		private X509Certificate GenerateJcaObject(