From 4d33b997e61ee7dffa8f4e1fe8a7b8c14877a7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Mon, 30 Nov 2015 14:04:57 +0100 Subject: [PATCH] HMAC-SHA1: add test with 64 byte size key --- lib/sha1_test.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/sha1_test.c b/lib/sha1_test.c index 802ba7b6..b239287b 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'");