System.Security.Cryptography.RSAOpenSsl.VerifyHash C# (CSharp) Method

VerifyHash() public method

public VerifyHash ( byte hash, byte signature, System hashAlgorithm, System padding ) : bool
hash byte
signature byte
hashAlgorithm System
padding System
return bool
        public override bool VerifyHash(byte[] hash, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding)
        {
            throw null;
        }

Usage Example

Example #1
0
        public bool VerifyData(byte[] buffer, object halg, byte[] signature)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }
            if (signature == null)
            {
                throw new ArgumentNullException("signature");
            }

            HashAlgorithmName hashAlgorithmName = LookupHashAlgorithm(halg);

            byte[] hash = _defer.HashData(buffer, 0, buffer.Length, hashAlgorithmName);
            return(_defer.VerifyHash(hash, signature, hashAlgorithmName));
        }