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