mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
HMAC-SHA1: add test with 64 byte size key
This commit is contained in:
parent
f6dd038802
commit
4d33b997e6
@ -206,6 +206,23 @@ t_sha1_hmac(void)
|
||||
},
|
||||
.out = "e8e99d0f45237d786d6bbaa7965c7808bbff1a91",
|
||||
},
|
||||
{
|
||||
.in = {
|
||||
.key = {
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61, 0x61,
|
||||
0x61, 0x61, 0x61, 0x61,
|
||||
},
|
||||
.key_len = 64,
|
||||
.data = "Test Using key 64 bytes sized",
|
||||
.data_len = 29,
|
||||
},
|
||||
.out = "a55d4fb80962a6b3d2e720705314bee417d68cf6",
|
||||
},
|
||||
};
|
||||
|
||||
bt_assert_fn_in_out(get_sha1_hmac, in_out, NULL, "'%s'");
|
||||
|
Loading…
Reference in New Issue
Block a user