NuGet.CryptoHashProvider.VerifyHash C# (CSharp) Method

VerifyHash() public method

public VerifyHash ( byte data, byte hash ) : bool
data byte
hash byte
return bool
        public bool VerifyHash(byte[] data, byte[] hash)
        {
            byte[] dataHash = CalculateHash(data);
            return Enumerable.SequenceEqual(dataHash, hash);
        }