System.Security.Cryptography.RSA.VerifyHash C# (CSharp) Метод

VerifyHash() публичный Метод

public VerifyHash ( byte hash, byte signature, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : bool
hash byte
signature byte
hashAlgorithm Internal.Cryptography.HashAlgorithmName
padding RSASignaturePadding
Результат bool
        public virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        {
            throw DerivedClassMustOverride();
        }

Usage Example

Пример #1
0
        public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        {
            if (signature == null)
                throw new ArgumentNullException(nameof(signature));
            if (padding != RSASignaturePadding.Pkcs1)
                throw PaddingModeNotSupported();

            // _impl does remaining parameter validation

            return _impl.VerifyHash(hash, signature, hashAlgorithm, padding);
        }
All Usage Examples Of System.Security.Cryptography.RSA::VerifyHash