mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-10 02:51:54 +00:00
SHA1: Remove duplicated tests
This commit is contained in:
parent
40d323e150
commit
2a2fef75cd
@ -206,42 +206,6 @@ t_sha1_hmac(void)
|
|||||||
},
|
},
|
||||||
.out = "e8e99d0f45237d786d6bbaa7965c7808bbff1a91",
|
.out = "e8e99d0f45237d786d6bbaa7965c7808bbff1a91",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
.in = {
|
|
||||||
.key = {
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
},
|
|
||||||
.key_len = 80,
|
|
||||||
.data = "Test Using Larger Than Block-Size Key - Hash Key First",
|
|
||||||
.data_len = 54,
|
|
||||||
},
|
|
||||||
.out = "aa4ae5e15272d00e95705637ce8a3b55ed402112",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.in = {
|
|
||||||
.key = {
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
||||||
},
|
|
||||||
.key_len = 80,
|
|
||||||
.data = "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data",
|
|
||||||
.data_len = 73,
|
|
||||||
},
|
|
||||||
.out = "e8e99d0f45237d786d6bbaa7965c7808bbff1a91",
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bt_assert_fn_in_out(get_sha1_hmac, in_out, NULL, "'%s'");
|
bt_assert_fn_in_out(get_sha1_hmac, in_out, NULL, "'%s'");
|
||||||
|
Loading…
Reference in New Issue
Block a user