System.Security.Cryptography.RSACryptoServiceProvider.RSACryptoServiceProvider.VerifyData C# (CSharp) Method

VerifyData() public method

public VerifyData ( byte buffer, object halg, byte signature ) : bool
buffer byte
halg object
signature byte
return bool
		public bool VerifyData (byte[] buffer, object halg, byte[] signature) 
		{
#if NET_1_1
			if (buffer == null)
				throw new ArgumentNullException ("buffer");
#endif
			if (signature == null)
				throw new ArgumentNullException ("signature");

			HashAlgorithm hash = GetHash (halg);
			byte[] toBeVerified = hash.ComputeHash (buffer);
			return PKCS1.Verify_v15 (this, hash, toBeVerified, signature);
		}