From 1cb2f2830878b85fb197f2eac26ee7c9687d3d50 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 23 Oct 2012 13:48:16 -0700 Subject: [PATCH] align rabbit test keys and ivs --- ctaocrypt/test/test.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index 7302b76a5..c5ca864e6 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -991,21 +991,25 @@ int rabbit_test(void) byte cipher[16]; byte plain[16]; - const char* keys[] = + const char* keys[] = /* align with 3 extra bytes cause null is added */ { - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00", + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00", "\xAC\xC3\x51\xDC\xF1\x62\xFC\x3B\xFE\x36\x3D\x2E\x29\x13\x28\x91" + "\x00\x00\x00" }; - const char* ivs[] = + const char* ivs[] = /* align with 3 extra bytes casue null is added */ { - "\x00\x00\x00\x00\x00\x00\x00\x00", - "\x59\x7E\x26\xC1\x75\xF5\x73\xC3", + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00", + "\x59\x7E\x26\xC1\x75\xF5\x73\xC3" + "\x00\x00\x00", 0 }; - testVector a, b, c; testVector test_rabbit[3];