mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 04:34:41 +02:00
align rabbit test keys and ivs
This commit is contained in:
@@ -991,21 +991,25 @@ int rabbit_test(void)
|
|||||||
byte cipher[16];
|
byte cipher[16];
|
||||||
byte plain[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"
|
"\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",
|
"\x00\x00\x00\x00\x00\x00\x00\x00"
|
||||||
"\x59\x7E\x26\xC1\x75\xF5\x73\xC3",
|
"\x00\x00\x00",
|
||||||
|
"\x59\x7E\x26\xC1\x75\xF5\x73\xC3"
|
||||||
|
"\x00\x00\x00",
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
testVector a, b, c;
|
testVector a, b, c;
|
||||||
testVector test_rabbit[3];
|
testVector test_rabbit[3];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user