summary refs log tree commit diff
path: root/crypto/src/cms
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms')
-rw-r--r--crypto/src/cms/SignerInformation.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/src/cms/SignerInformation.cs b/crypto/src/cms/SignerInformation.cs
index 9b8884cdb..df6624f99 100644
--- a/crypto/src/cms/SignerInformation.cs
+++ b/crypto/src/cms/SignerInformation.cs
@@ -318,7 +318,7 @@ namespace Org.BouncyCastle.Cms
 			return signedAttributeSet?.GetEncoded(Asn1Encodable.Der);
 		}
 
-		private bool DoVerify(AsymmetricKeyParameter key)
+		private bool DoVerify(AsymmetricKeyParameter publicKey)
 		{
 			DerObjectIdentifier sigAlgOid = this.encryptionAlgorithm.Algorithm;
 			Asn1Encodable sigParams = this.encryptionAlgorithm.Parameters;
@@ -482,7 +482,7 @@ namespace Org.BouncyCastle.Cms
 
 			try
 			{
-				sig.Init(false, key);
+				sig.Init(false, publicKey);
 
 				if (signedAttributeSet == null)
 				{
@@ -495,7 +495,7 @@ namespace Org.BouncyCastle.Cms
 						else
 						{
 							// need to decrypt signature and check message bytes
-							return VerifyDigest(resultDigest, key, this.GetSignature());
+							return VerifyDigest(resultDigest, publicKey, GetSignature());
 						}
 					}
 					else if (content != null)
@@ -559,7 +559,7 @@ namespace Org.BouncyCastle.Cms
 			return digInfo;
 		}
 
-		private bool VerifyDigest(byte[] digest, AsymmetricKeyParameter key, byte[] signature)
+		private bool VerifyDigest(byte[] digest, AsymmetricKeyParameter publicKey, byte[] signature)
 		{
 			string algorithm = CmsSignedHelper.GetEncryptionAlgName(encryptionAlgorithm.Algorithm);
 
@@ -569,7 +569,7 @@ namespace Org.BouncyCastle.Cms
 				{
 					IBufferedCipher c = CipherUtilities.GetCipher(Asn1.Pkcs.PkcsObjectIdentifiers.RsaEncryption);
 
-					c.Init(false, key);
+					c.Init(false, publicKey);
 
 					byte[] decrypt = c.DoFinal(signature);
 
@@ -593,7 +593,7 @@ namespace Org.BouncyCastle.Cms
 				{
 					ISigner sig = CmsSignedHelper.GetSignatureInstance("NONEwithDSA");
 
-					sig.Init(false, key);
+					sig.Init(false, publicKey);
 
 					sig.BlockUpdate(digest, 0, digest.Length);