From: Pavel TvrdĂ­k Date: Mon, 30 Nov 2015 13:04:57 +0000 (+0100) Subject: HMAC-SHA1: add test with 64 byte size key X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d33b997e61ee7dffa8f4e1fe8a7b8c14877a7c9;p=thirdparty%2Fbird.git HMAC-SHA1: add test with 64 byte size key --- diff --git a/lib/sha1_test.c b/lib/sha1_test.c index 802ba7b68..b239287b2 100644 --- a/lib/sha1_test.c +++ b/lib/sha1_test.c @@ -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'");