Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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));
     }
 }