private static void VerifyQuad(SjclQuad quad, uint a, uint b, uint c, uint d) { Assert.That(quad.A, Is.EqualTo(a)); Assert.That(quad.B, Is.EqualTo(b)); Assert.That(quad.C, Is.EqualTo(c)); Assert.That(quad.D, Is.EqualTo(d)); }
private static void VerifyQuad(SjclQuad quad, uint a, uint b, uint c, uint d) { Assert.AreEqual(a, quad.A); Assert.AreEqual(b, quad.B); Assert.AreEqual(c, quad.C); Assert.AreEqual(d, quad.D); }
private static void VerifyZeroQuad(SjclQuad quad) { VerifyQuad(quad, 0, 0, 0, 0); }
private static void VerifyDeadBeefQuad(SjclQuad quad) { VerifyQuad(quad, A, B, C, D); }
public AesTestCase(string key, string plaintext, string ciphertext) { Key = key.DecodeHex(); Plaintext = new SjclQuad(plaintext.DecodeHex()); Ciphertext = new SjclQuad(ciphertext.DecodeHex()); }