Verify_v15() public static method

public static Verify_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue, byte signature ) : bool
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
hashValue byte
signature byte
return bool
Ejemplo n.º 1
0
        public override bool VerifySignature(
            byte[] rgbHash,
            byte[] rgbSignature)
        {
            if (this.key == null)
            {
                throw new CryptographicUnexpectedOperationException("The key is a null reference");
            }
            if (hash == null)
            {
                throw new CryptographicUnexpectedOperationException("The hash algorithm is a null reference.");
            }
            if (rgbHash == null)
            {
                throw new ArgumentNullException("The rgbHash parameter is a null reference.");
            }

                        #pragma warning disable 436
            return(PKCS1.Verify_v15(key, hash.Algorithm, rgbHash, rgbSignature));

                        #pragma warning restore 436
        }
Ejemplo n.º 2
0
 public static bool Verify_v15(RSA rsa, HashAlgorithm hash, byte[] hashValue, byte[] signature)
 {
     return(PKCS1.Verify_v15(rsa, hash, hashValue, signature, false));
 }