align rabbit test keys and ivs

pull/1/head
toddouska 2012-10-23 13:48:16 -07:00
parent 57c6d46ea7
commit 1cb2f28308
1 changed files with 11 additions and 7 deletions

View File

@ -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];