Пример #1
0
 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));
 }
Пример #2
0
 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);
 }
Пример #3
0
 private static void VerifyZeroQuad(SjclQuad quad)
 {
     VerifyQuad(quad, 0, 0, 0, 0);
 }
Пример #4
0
 private static void VerifyDeadBeefQuad(SjclQuad quad)
 {
     VerifyQuad(quad, A, B, C, D);
 }
Пример #5
0
 public AesTestCase(string key, string plaintext, string ciphertext)
 {
     Key        = key.DecodeHex();
     Plaintext  = new SjclQuad(plaintext.DecodeHex());
     Ciphertext = new SjclQuad(ciphertext.DecodeHex());
 }