Mono.Security.StrongName.VerifySignature C# (CSharp) Method

VerifySignature() static public method

static public VerifySignature ( byte publicKey, int algorithm, byte hash, byte signature ) : bool
publicKey byte
algorithm int
hash byte
signature byte
return bool
		static public bool VerifySignature (byte[] publicKey, int algorithm, byte[] hash, byte[] signature) 
		{
			try {
				RSA rsa = CryptoConvert.FromCapiPublicKeyBlob (publicKey);
				return Verify (rsa, (AssemblyHashAlgorithm) algorithm, hash, signature);
			}
			catch {
				// no exception allowed
				return false;
			}
		}
#endif