Skip to content

Commit

Permalink
test: [KAT] add extra ZUC vector
Browse files Browse the repository at this point in the history
Add extra ZUC-EEA3 vector to reproduce keystream generation
issue.

Signed-off-by: Pablo de Lara <[email protected]>
  • Loading branch information
pablodelara authored and mdcornu committed Feb 19, 2024
1 parent cb9d2a7 commit dad3dfb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/kat-app/zuc_eea3_128.json.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,17 @@ const struct cipher_test zuc_eea3_128_test_json[] = {
{ 128, 128, 9, "\x4d\x32\x0b\xfa\xd4\xc2\x85\xbf\xd6\xb8\xbd\x00\xf3\x9d\x8b\x41",
"\x52\x95\x9d\xab\xa0\xbf\x17\x6e\xce\x2d\xc3\x15\x04\x9e\xb5\x74",
"\x00\x00\x00\x00\x00\x00\x00\x00", "\xed\x44\x00\xe7\x06\x33\xe5\xc5", 1, 64 },
/*
* Extra vector to test corner case of LFSR update
*/
{ 48, 128, 10, "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
"\x4b\x72\x50\xcf\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",
"\xF5\x55\x33\x65\x01\x31\x2E\xD7\x72\x08\xC8\xFC\x30\xB5\xA4\x4A"
"\x7d\x09\x7d\x6e\x74\x4e\x10\x40\x07\x5f\x47\x85\x12\x69\x99\xd5"
"\x6e\xb2\x3b\x97\x2a",
1, 37 * 8 },
{ 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0 }
};

0 comments on commit dad3dfb

Please sign in to comment.