public void GHash_returns_hash(TestCase tc) { var hash = AesGcm.GHash(tc.HashKey, tc.AuthData, tc.AuthData.Length, tc.Ciphertext, tc.Ciphertext.Length); Assert.Equal(tc.GHash, hash); }
public void GHash_returns_hash() { foreach (var i in TestCases) { var hash = AesGcm.GHash(i.HashKey, i.AuthData, i.AuthData.Length, i.Ciphertext, i.Ciphertext.Length); Assert.That(hash, Is.EqualTo(i.GHash)); } }