From 62abcebb0177584bc9adccd140aad1dd4d0296e3 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Mon, 14 May 2018 12:38:29 -0400 Subject: [PATCH] Add a driver for Wycheproof CMAC tests. Change-Id: Iafe81d22647c99167ab27a5345cfa970755112ac Reviewed-on: https://boringssl-review.googlesource.com/28465 Commit-Queue: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org Reviewed-by: Adam Langley --- crypto/cmac/cmac_test.cc | 67 + sources.cmake | 1 + .../wycheproof_testvectors/aes_cmac_test.txt | 2069 +++++++++++++++++ .../convert_wycheproof.go | 1 + 4 files changed, 2138 insertions(+) create mode 100644 third_party/wycheproof_testvectors/aes_cmac_test.txt diff --git a/crypto/cmac/cmac_test.cc b/crypto/cmac/cmac_test.cc index 3d01e087..e7bc0978 100644 --- a/crypto/cmac/cmac_test.cc +++ b/crypto/cmac/cmac_test.cc @@ -15,6 +15,7 @@ #include #include +#include #include @@ -22,7 +23,9 @@ #include #include +#include "../test/file_test.h" #include "../test/test_util.h" +#include "../test/wycheproof_util.h" static void test(const char *name, const uint8_t *key, size_t key_len, @@ -116,3 +119,67 @@ TEST(CMACTest, RFC4493TestVectors) { test("RFC 4493 #3", kKey, sizeof(kKey), kMsg3, sizeof(kMsg3), kOut3); test("RFC 4493 #4", kKey, sizeof(kKey), kMsg4, sizeof(kMsg4), kOut4); } + +TEST(CMACTest, Wycheproof) { + FileTestGTest("third_party/wycheproof_testvectors/aes_cmac_test.txt", + [](FileTest *t) { + std::string key_size, tag_size; + ASSERT_TRUE(t->GetInstruction(&key_size, "keySize")); + ASSERT_TRUE(t->GetInstruction(&tag_size, "tagSize")); + WycheproofResult result; + ASSERT_TRUE(GetWycheproofResult(t, &result)); + std::vector key, msg, tag; + ASSERT_TRUE(t->GetBytes(&key, "key")); + ASSERT_TRUE(t->GetBytes(&msg, "msg")); + ASSERT_TRUE(t->GetBytes(&tag, "tag")); + + const EVP_CIPHER *cipher; + switch (atoi(key_size.c_str())) { + case 128: + cipher = EVP_aes_128_cbc(); + break; + case 192: + cipher = EVP_aes_192_cbc(); + break; + case 256: + cipher = EVP_aes_256_cbc(); + break; + default: + // Some test vectors intentionally give the wrong key size. Our API + // requires the caller pick the sized CBC primitive, so these tests + // aren't useful for us. + EXPECT_EQ(WycheproofResult::kInvalid, result); + return; + } + + size_t tag_len = static_cast(atoi(tag_size.c_str())) / 8; + + uint8_t out[16]; + bssl::UniquePtr ctx(CMAC_CTX_new()); + ASSERT_TRUE(ctx); + ASSERT_TRUE(CMAC_Init(ctx.get(), key.data(), key.size(), cipher, NULL)); + ASSERT_TRUE(CMAC_Update(ctx.get(), msg.data(), msg.size())); + size_t out_len; + ASSERT_TRUE(CMAC_Final(ctx.get(), out, &out_len)); + // Truncate the tag, if requested. + out_len = std::min(out_len, tag_len); + + if (result == WycheproofResult::kValid) { + EXPECT_EQ(Bytes(tag), Bytes(out, out_len)); + + // Test the streaming API as well. + ASSERT_TRUE(CMAC_Reset(ctx.get())); + for (uint8_t b : msg) { + ASSERT_TRUE(CMAC_Update(ctx.get(), &b, 1)); + } + ASSERT_TRUE(CMAC_Final(ctx.get(), out, &out_len)); + out_len = std::min(out_len, tag_len); + EXPECT_EQ(Bytes(tag), Bytes(out, out_len)); + } else { + // Wycheproof's invalid tests assume the implementation internally does + // the comparison, whereas our API only computes the tag. Check that + // they're not equal, but these tests are mostly not useful for us. + EXPECT_NE(Bytes(tag), Bytes(out, out_len)); + } + }); +} diff --git a/sources.cmake b/sources.cmake index 8c28151b..52c09acd 100644 --- a/sources.cmake +++ b/sources.cmake @@ -60,6 +60,7 @@ set( crypto/x509/some_names2.pem crypto/x509/some_names3.pem third_party/wycheproof_testvectors/aes_cbc_pkcs5_test.txt + third_party/wycheproof_testvectors/aes_cmac_test.txt third_party/wycheproof_testvectors/aes_gcm_siv_test.txt third_party/wycheproof_testvectors/aes_gcm_test.txt third_party/wycheproof_testvectors/chacha20_poly1305_test.txt diff --git a/third_party/wycheproof_testvectors/aes_cmac_test.txt b/third_party/wycheproof_testvectors/aes_cmac_test.txt new file mode 100644 index 00000000..e4bc83b5 --- /dev/null +++ b/third_party/wycheproof_testvectors/aes_cmac_test.txt @@ -0,0 +1,2069 @@ +# Imported from Wycheproof's aes_cmac_test.json. +# This file is generated by convert_wycheproof.go. Do not edit by hand. +# +# Algorithm: AES-CMAC +# Generator version: 0.4 + +[keySize = 128] +[tagSize = 96] + +# tcId = 1 +# empty message +key = 1607559459d30d33548a635ab1eeab9d +msg = +result = valid +tag = 6a8974470fddb0a47e2b6e7d + +# tcId = 2 +# truncated mac +key = 994275465065fdc96ae37b5d2feb8726 +msg = c6 +result = valid +tag = 3bfa9ec0fb0cc2b8509e7b1f + +# tcId = 3 +# truncated mac +key = ddc31fc7751a2bf5c8d2d815035622e8 +msg = c81598f30b3e8ca8 +result = valid +tag = 323c2fd67f1bc85108f391e1 + +# tcId = 4 +# truncated mac +key = acef13560296fdc6b09398ae04196f2b +msg = 25d99a552339745e24a0cb6a9669c4 +result = valid +tag = cdff8af899f61a70a97d967a + +# tcId = 5 +# truncated mac +key = 33defac4ec7c7b69aa72edb23119e619 +msg = ceabee3f13d0718779ba86acccd6d5a9 +result = valid +tag = e0b19f7e0316f276a846115f + +# tcId = 6 +# truncated mac +key = d1c61c251def47b39deb1a77a8b188d9 +msg = 0d68e86cf139677cb461a0fa76690e4afc +result = valid +tag = 2c5f2629fa41555e84c0ef0c + +# tcId = 7 +# truncated mac +key = 3f71e3875f234fc569433cafa3a36330 +msg = a3e01e9a597e57502fd849908aa7a19407cbfdc74bc5c485 +result = valid +tag = eb8e0bb4937e4a4f9fd55465 + +[keySize = 128] +[tagSize = 128] + +# tcId = 8 +# empty message +key = e34f15c7bd819930fe9d66e0c166e61c +msg = +result = valid +tag = d47afca1d857a5933405b1eb7a5cb7af + +# tcId = 9 +# full length mac +key = e1e726677f4893890f8c027f9d8ef80d +msg = 3f +result = valid +tag = 15f856bbed3b321952a584b3c4437a63 + +# tcId = 10 +# full length mac +key = 48f0d03e41cc55c4b58f737b5acdea32 +msg = f4a133aa6d5985a0 +result = valid +tag = 1f1cd0327c02e6d00086915937dd61d9 + +# tcId = 11 +# full length mac +key = 501d81ebf912ddb87fbe3b7aac1437bc +msg = 2368e3c3636b5e8e94d2081adbf798 +result = valid +tag = aeb784a3825168ddd61f72d0202125e6 + +# tcId = 12 +# full length mac +key = e09eaa5a3f5e56d279d5e7a03373f6ea +msg = ef4eab37181f98423e53e947e7050fd0 +result = valid +tag = 40facf0e2fb51b73a7472681b033d6dc + +# tcId = 13 +# full length mac +key = 831e664c9e3f0c3094c0b27b9d908eb2 +msg = 26603bb76dd0a0180791c4ed4d3b058807 +result = valid +tag = a8144c8b24f2aa47d9c160cff4ab1716 + +# tcId = 14 +# full length mac +key = 549bd282ee21b4d7c3b1d02e3ee20ef7 +msg = d84bf73c5eecbd38444f1a73556e2fa3253f4c54d6916545 +result = valid +tag = 7ed458afe02f4a513f59715b664b1bbe + +# tcId = 15 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 96dd6e5a882cbd564c39ae7d1c5a31aa + +# tcId = 16 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 43802eb1931f0032afe984443738cd31 + +# tcId = 17 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7acfbbca7a2ea68b966fc5399f74809e + +# tcId = 18 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 95dd6e5a882cbd564c39ae7d1c5a31aa + +# tcId = 19 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 40802eb1931f0032afe984443738cd31 + +# tcId = 20 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 79cfbbca7a2ea68b966fc5399f74809e + +# tcId = 21 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 17dd6e5a882cbd564c39ae7d1c5a31aa + +# tcId = 22 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = c2802eb1931f0032afe984443738cd31 + +# tcId = 23 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = fbcfbbca7a2ea68b966fc5399f74809e + +# tcId = 24 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dc6e5a882cbd564c39ae7d1c5a31aa + +# tcId = 25 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42812eb1931f0032afe984443738cd31 + +# tcId = 26 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcebbca7a2ea68b966fc5399f74809e + +# tcId = 27 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6eda882cbd564c39ae7d1c5a31aa + +# tcId = 28 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802e31931f0032afe984443738cd31 + +# tcId = 29 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbb4a7a2ea68b966fc5399f74809e + +# tcId = 30 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a892cbd564c39ae7d1c5a31aa + +# tcId = 31 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1921f0032afe984443738cd31 + +# tcId = 32 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7b2ea68b966fc5399f74809e + +# tcId = 33 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a8a2cbd564c39ae7d1c5a31aa + +# tcId = 34 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1911f0032afe984443738cd31 + +# tcId = 35 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca782ea68b966fc5399f74809e + +# tcId = 36 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbdd64c39ae7d1c5a31aa + +# tcId = 37 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f00b2afe984443738cd31 + +# tcId = 38 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea60b966fc5399f74809e + +# tcId = 39 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564d39ae7d1c5a31aa + +# tcId = 40 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032aee984443738cd31 + +# tcId = 41 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b976fc5399f74809e + +# tcId = 42 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd56cc39ae7d1c5a31aa + +# tcId = 43 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f00322fe984443738cd31 + +# tcId = 44 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b166fc5399f74809e + +# tcId = 45 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c19ae7d1c5a31aa + +# tcId = 46 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afc984443738cd31 + +# tcId = 47 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b964fc5399f74809e + +# tcId = 48 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39af7d1c5a31aa + +# tcId = 49 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe985443738cd31 + +# tcId = 50 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc4399f74809e + +# tcId = 51 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1d5a31aa + +# tcId = 52 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443638cd31 + +# tcId = 53 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399e74809e + +# tcId = 54 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1e5a31aa + +# tcId = 55 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443538cd31 + +# tcId = 56 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399d74809e + +# tcId = 57 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d9c5a31aa + +# tcId = 58 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe98444b738cd31 + +# tcId = 59 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5391f74809e + +# tcId = 60 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1c5a31ab + +# tcId = 61 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443738cd30 + +# tcId = 62 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399f74809f + +# tcId = 63 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1c5a31a8 + +# tcId = 64 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443738cd33 + +# tcId = 65 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399f74809c + +# tcId = 66 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1c5a31ea + +# tcId = 67 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443738cd71 + +# tcId = 68 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399f7480de + +# tcId = 69 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbd564c39ae7d1c5a312a + +# tcId = 70 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f0032afe984443738cdb1 + +# tcId = 71 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea68b966fc5399f74801e + +# tcId = 72 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 96dd6e5a882cbd564d39ae7d1c5a31aa + +# tcId = 73 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 43802eb1931f0032aee984443738cd31 + +# tcId = 74 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7acfbbca7a2ea68b976fc5399f74809e + +# tcId = 75 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6eda882cbdd64c39ae7d1c5a31aa + +# tcId = 76 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802e31931f00b2afe984443738cd31 + +# tcId = 77 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbb4a7a2ea60b966fc5399f74809e + +# tcId = 78 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 97dd6e5a882cbdd64c39ae7d1c5a312a + +# tcId = 79 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 42802eb1931f00b2afe984443738cdb1 + +# tcId = 80 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7bcfbbca7a2ea60b966fc5399f74801e + +# tcId = 81 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 682291a577d342a9b3c65182e3a5ce55 + +# tcId = 82 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = bd7fd14e6ce0ffcd50167bbbc8c732ce + +# tcId = 83 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 8430443585d1597469903ac6608b7f61 + +# tcId = 84 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 85 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 86 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 87 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 88 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 89 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 90 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 175deeda08ac3dd6ccb92efd9cdab12a + +# tcId = 91 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = c200ae31139f80b22f6904c4b7b84db1 + +# tcId = 92 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = fb4f3b4afaae260b16ef45b91ff4001e + +# tcId = 93 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = +result = invalid +tag = 96dc6f5b892dbc574d38af7c1d5b30ab + +# tcId = 94 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 0001020304050607 +result = invalid +tag = 43812fb0921e0133aee885453639cc30 + +# tcId = 95 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 7acebacb7b2fa78a976ec4389e75819f + +[keySize = 192] +[tagSize = 96] + +# tcId = 96 +# empty message +key = 78fe7087bc810abf08f15fc69804f888435a6442677c8c79 +msg = +result = valid +tag = 48d92d311f60d51a23e56d8c + +# tcId = 97 +# truncated mac +key = 7ab6fb0e3456e40c3a6c5db57a3d0548d4c8c3cfd8849dba +msg = c6 +result = valid +tag = d904a70715bd0ad9468f37b2 + +# tcId = 98 +# truncated mac +key = f095a5d39f0b499cef0130b4eb3bfae90253a1f30270efb5 +msg = 738e196c2cb0206b +result = valid +tag = 7a3b8de1c57e7c5f7babbe42 + +# tcId = 99 +# truncated mac +key = 6fee9e028a35d168ffe2062338f753d3930597b341210f0c +msg = a1518bb8cb88f305935b91f64f2479 +result = valid +tag = 7ba264b276a0849bc76a2a29 + +# tcId = 100 +# truncated mac +key = 304b9077a8f36fd949e38bbfb6dd71e313530ba0a34d3e77 +msg = 87e60924ae7f2ae1567cbcb07f7ae2aa +result = valid +tag = 725e51ac5b10338d940c0236 + +# tcId = 101 +# truncated mac +key = fec7f37de35365c415701ba2eec2d94cb20e3e2a0c21cfcf +msg = cf24271e0acebd3249f996da1fe9d13e3f +result = valid +tag = 7636cec43b5b7a40787580fa + +# tcId = 102 +# truncated mac +key = 5f4df68a45a5edde95907b5b002fcf3ba6747f9194536dd3 +msg = 4cc781faaa8decb281afab7dc69f380921d04c54414bb65f +result = valid +tag = bb2de41c514dd64ebc5f5a99 + +[keySize = 192] +[tagSize = 128] + +# tcId = 103 +# empty message +key = 3d6bf9edae6d881eade0ff8c7076a4835b71320c1f36b631 +msg = +result = valid +tag = a8dd15fe2ce3495ec5b666744ec29220 + +# tcId = 104 +# full length mac +key = 915429743435c28997a33b33b6574a953d81dae0e7032e6a +msg = 58 +result = valid +tag = e13b3f7f7f510c3a059df7a68c7e2ad5 + +# tcId = 105 +# full length mac +key = 28d8da67806410e5565bcc5a9d7ab9fb357413fa0158378c +msg = 004e3f4a4e6db955 +result = valid +tag = c4c2c0876be9eabeb5a956da53846b08 + +# tcId = 106 +# full length mac +key = 850fc859e9f7b89a367611dee6698f33962d8245ca8dc331 +msg = 586f4f171af116519061a8e0e77940 +result = valid +tag = fb11a360c9776991d73d6e41d07710a2 + +# tcId = 107 +# full length mac +key = f4bfa5aa4f0f4d62cf736cd2969c43d580fdb92f2753bedb +msg = 0e239f239705b282ce2200fe20de1165 +result = valid +tag = ab20a6cf60873665b1d6999b05c7f9c6 + +# tcId = 108 +# full length mac +key = cfd3f68873d81a27d2bfce876c79f6e609074dec39e34614 +msg = b1973cb25aa87ef9d1a8888b0a0f5c04c6 +result = valid +tag = b95a016b83a0ae4194023333c8a7345a + +# tcId = 109 +# full length mac +key = 648a44468d67bb6744b235ee7a3fcd6ed4bdc29ec5b5fa1a +msg = c59d0d6981cca1be1d5519fc7881e6d230f39f6c12a9e827 +result = valid +tag = a1b96272ae7f9aef567271795f21d1d3 + +# tcId = 110 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ed12390ea0a7ed15d9d37a6eca1fc990 + +# tcId = 111 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c81307df60859acb911c7be61be7ca90 + +# tcId = 112 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f91bde0069a6e389573bf04e7cde688c + +# tcId = 113 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ee12390ea0a7ed15d9d37a6eca1fc990 + +# tcId = 114 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = cb1307df60859acb911c7be61be7ca90 + +# tcId = 115 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = fa1bde0069a6e389573bf04e7cde688c + +# tcId = 116 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = 6c12390ea0a7ed15d9d37a6eca1fc990 + +# tcId = 117 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = 491307df60859acb911c7be61be7ca90 + +# tcId = 118 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 781bde0069a6e389573bf04e7cde688c + +# tcId = 119 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec13390ea0a7ed15d9d37a6eca1fc990 + +# tcId = 120 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91207df60859acb911c7be61be7ca90 + +# tcId = 121 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81ade0069a6e389573bf04e7cde688c + +# tcId = 122 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12398ea0a7ed15d9d37a6eca1fc990 + +# tcId = 123 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c913075f60859acb911c7be61be7ca90 + +# tcId = 124 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde8069a6e389573bf04e7cde688c + +# tcId = 125 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea1a7ed15d9d37a6eca1fc990 + +# tcId = 126 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df61859acb911c7be61be7ca90 + +# tcId = 127 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0068a6e389573bf04e7cde688c + +# tcId = 128 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea2a7ed15d9d37a6eca1fc990 + +# tcId = 129 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df62859acb911c7be61be7ca90 + +# tcId = 130 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde006ba6e389573bf04e7cde688c + +# tcId = 131 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed95d9d37a6eca1fc990 + +# tcId = 132 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859a4b911c7be61be7ca90 + +# tcId = 133 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e309573bf04e7cde688c + +# tcId = 134 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d8d37a6eca1fc990 + +# tcId = 135 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb901c7be61be7ca90 + +# tcId = 136 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389563bf04e7cde688c + +# tcId = 137 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed1559d37a6eca1fc990 + +# tcId = 138 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb111c7be61be7ca90 + +# tcId = 139 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389d73bf04e7cde688c + +# tcId = 140 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9f37a6eca1fc990 + +# tcId = 141 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb913c7be61be7ca90 + +# tcId = 142 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389571bf04e7cde688c + +# tcId = 143 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37b6eca1fc990 + +# tcId = 144 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7ae61be7ca90 + +# tcId = 145 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf14e7cde688c + +# tcId = 146 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6ecb1fc990 + +# tcId = 147 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be61ae7ca90 + +# tcId = 148 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7dde688c + +# tcId = 149 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6ec81fc990 + +# tcId = 150 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be619e7ca90 + +# tcId = 151 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7ede688c + +# tcId = 152 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6e4a1fc990 + +# tcId = 153 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be69be7ca90 + +# tcId = 154 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04efcde688c + +# tcId = 155 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6eca1fc991 + +# tcId = 156 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be61be7ca91 + +# tcId = 157 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7cde688d + +# tcId = 158 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6eca1fc992 + +# tcId = 159 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be61be7ca92 + +# tcId = 160 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7cde688e + +# tcId = 161 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6eca1fc9d0 + +# tcId = 162 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be61be7cad0 + +# tcId = 163 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7cde68cc + +# tcId = 164 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed15d9d37a6eca1fc910 + +# tcId = 165 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859acb911c7be61be7ca10 + +# tcId = 166 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e389573bf04e7cde680c + +# tcId = 167 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ed12390ea0a7ed15d8d37a6eca1fc990 + +# tcId = 168 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c81307df60859acb901c7be61be7ca90 + +# tcId = 169 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f91bde0069a6e389563bf04e7cde688c + +# tcId = 170 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12398ea0a7ed95d9d37a6eca1fc990 + +# tcId = 171 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c913075f60859a4b911c7be61be7ca90 + +# tcId = 172 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde8069a6e309573bf04e7cde688c + +# tcId = 173 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ec12390ea0a7ed95d9d37a6eca1fc910 + +# tcId = 174 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c91307df60859a4b911c7be61be7ca10 + +# tcId = 175 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f81bde0069a6e309573bf04e7cde680c + +# tcId = 176 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = 13edc6f15f5812ea262c859135e0366f + +# tcId = 177 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = 36ecf8209f7a65346ee38419e418356f + +# tcId = 178 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 07e421ff96591c76a8c40fb183219773 + +# tcId = 179 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 180 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 181 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 182 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 183 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 184 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 185 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = 6c92b98e20276d955953faee4a9f4910 + +# tcId = 186 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = 4993875fe0051a4b119cfb669b674a10 + +# tcId = 187 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 789b5e80e9266309d7bb70cefc5ee80c + +# tcId = 188 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = +result = invalid +tag = ed13380fa1a6ec14d8d27b6fcb1ec891 + +# tcId = 189 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 0001020304050607 +result = invalid +tag = c81206de61849bca901d7ae71ae6cb91 + +# tcId = 190 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f1011121314151617 +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = f91adf0168a7e288563af14f7ddf698d + +[keySize = 256] +[tagSize = 96] + +# tcId = 191 +# empty message +key = e40992eb4f649e5d49134652aecc24bafa6b45ce8dd9e9d371ede7d5de84fa72 +msg = +result = valid +tag = 034762bd9014d642f7f08af7 + +# tcId = 192 +# truncated mac +key = 298962335a075e9eacb7a7627beafa4ee5a02242423cdfb0b4f106eb61cf5663 +msg = 49 +result = valid +tag = 4545f042beb65af2b7b74808 + +# tcId = 193 +# truncated mac +key = 2e94a84c78be80cd598366058d4f6cdf8095666dcac7a00ad832d9f33e20d13c +msg = b978587bf028558d +result = valid +tag = 6703f99ac094ed0e9d9973b5 + +# tcId = 194 +# truncated mac +key = 95b330aa5fffa6c0e29fd6fa0debdcb9cf6b448820bea24875089ec8ca5a2387 +msg = c96596ebba6f89761b9d14dfcc8fb4 +result = valid +tag = 2fc3ce831f693912d33f3fde + +# tcId = 195 +# truncated mac +key = 319cd78b51a689a66b232005d66ad1962d11e52faf6aaad4ce7dc30777cd9ecc +msg = 82ce94904b110635a8604c4f7afc786b +result = valid +tag = a7685d0f2049015e6f3229ee + +# tcId = 196 +# truncated mac +key = b3b7c2c6d3d80918218afcd8bf2a71cf0220e2e8084ead8ba1abfb893ae36d40 +msg = dbcf98254157727c35f367fe6e15a2d089 +result = valid +tag = 09a60999f8848d19be5242c8 + +# tcId = 197 +# truncated mac +key = 8588a6f1fb8ccc0fed3fdb3f8a39d389fb9260748f3b45bd74ad42a60c9caf2b +msg = 020cc9dd7f06f514bd3baf939f376b8b0083ff1b35ac90d0 +result = valid +tag = 50649ef2b87c22d2731ace23 + +[keySize = 256] +[tagSize = 128] + +# tcId = 198 +# empty message +key = 7bf9e536b66a215c22233fe2daaa743a898b9acb9f7802de70b40e3d6e43ef97 +msg = +result = valid +tag = 736c7b56957db774c5ddf7c7a70ba8a8 + +# tcId = 199 +# full length mac +key = e754076ceab3fdaf4f9bcab7d4f0df0cbbafbc87731b8f9b7cd2166472e8eebc +msg = 40 +result = valid +tag = 9d47482c2d9252bace43a75a8335b8b8 + +# tcId = 200 +# full length mac +key = 505aa98819809ef63b9a368a1e8bc2e922da45b03ce02d9a7966b15006dba2d5 +msg = 2e4e7ef728fe11af +result = valid +tag = f79606b83a7706a2a19e068bce818898 + +# tcId = 201 +# full length mac +key = c19bdf314c6cf64381425467f42aefa17c1cc9358be16ce31b1d214859ce86aa +msg = 5d066a92c300e9b6ddd63a7c13ae33 +result = valid +tag = b96818b7acaf879c7a7f8271375a6914 + +# tcId = 202 +# full length mac +key = 612e837843ceae7f61d49625faa7e7494f9253e20cb3adcea686512b043936cd +msg = cc37fae15f745a2f40e2c8b192f2b38d +result = valid +tag = 4b88e193000c5a4b23e95c7f2b26530b + +# tcId = 203 +# full length mac +key = 73216fafd0022d0d6ee27198b2272578fa8f04dd9f44467fbb6437aa45641bf7 +msg = d5247b8f6c3edcbfb1d591d13ece23d2f5 +result = valid +tag = 86911c7da51dc0823d6e93d4290d1ad4 + +# tcId = 204 +# full length mac +key = 0427a70e257528f3ab70640bba1a5de12cf3885dd4c8e284fbbb55feb35294a5 +msg = 13937f8544f44270d01175a011f7670e93fa6ba7ef02336e +result = valid +tag = ccb2c51bfbe2598f9109fc70ed07f0eb + +# tcId = 205 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6af0a293d8cba0101f0089727691b7fb + +# tcId = 206 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d709717c3a4ef8a2ea200b297d2accec + +# tcId = 207 +# Flipped bit 0 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 58ee3f3b5f83e290cae26dad29bba32d + +# tcId = 208 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 69f0a293d8cba0101f0089727691b7fb + +# tcId = 209 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d409717c3a4ef8a2ea200b297d2accec + +# tcId = 210 +# Flipped bit 1 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 5bee3f3b5f83e290cae26dad29bba32d + +# tcId = 211 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = ebf0a293d8cba0101f0089727691b7fb + +# tcId = 212 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = 5609717c3a4ef8a2ea200b297d2accec + +# tcId = 213 +# Flipped bit 7 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = d9ee3f3b5f83e290cae26dad29bba32d + +# tcId = 214 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf1a293d8cba0101f0089727691b7fb + +# tcId = 215 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d608717c3a4ef8a2ea200b297d2accec + +# tcId = 216 +# Flipped bit 8 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ef3f3b5f83e290cae26dad29bba32d + +# tcId = 217 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a213d8cba0101f0089727691b7fb + +# tcId = 218 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d60971fc3a4ef8a2ea200b297d2accec + +# tcId = 219 +# Flipped bit 31 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3fbb5f83e290cae26dad29bba32d + +# tcId = 220 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d9cba0101f0089727691b7fb + +# tcId = 221 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3b4ef8a2ea200b297d2accec + +# tcId = 222 +# Flipped bit 32 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5e83e290cae26dad29bba32d + +# tcId = 223 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293dacba0101f0089727691b7fb + +# tcId = 224 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c384ef8a2ea200b297d2accec + +# tcId = 225 +# Flipped bit 33 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5d83e290cae26dad29bba32d + +# tcId = 226 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0901f0089727691b7fb + +# tcId = 227 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef822ea200b297d2accec + +# tcId = 228 +# Flipped bit 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e210cae26dad29bba32d + +# tcId = 229 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101e0089727691b7fb + +# tcId = 230 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2eb200b297d2accec + +# tcId = 231 +# Flipped bit 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cbe26dad29bba32d + +# tcId = 232 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0109f0089727691b7fb + +# tcId = 233 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a26a200b297d2accec + +# tcId = 234 +# Flipped bit 71 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e2904ae26dad29bba32d + +# tcId = 235 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f2089727691b7fb + +# tcId = 236 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea000b297d2accec + +# tcId = 237 +# Flipped bit 77 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cac26dad29bba32d + +# tcId = 238 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0088727691b7fb + +# tcId = 239 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200a297d2accec + +# tcId = 240 +# Flipped bit 80 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26cad29bba32d + +# tcId = 241 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727791b7fb + +# tcId = 242 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297c2accec + +# tcId = 243 +# Flipped bit 96 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad28bba32d + +# tcId = 244 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727491b7fb + +# tcId = 245 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297f2accec + +# tcId = 246 +# Flipped bit 97 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad2bbba32d + +# tcId = 247 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f008972f691b7fb + +# tcId = 248 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b29fd2accec + +# tcId = 249 +# Flipped bit 103 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dada9bba32d + +# tcId = 250 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727691b7fa + +# tcId = 251 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297d2acced + +# tcId = 252 +# Flipped bit 120 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad29bba32c + +# tcId = 253 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727691b7f9 + +# tcId = 254 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297d2accee + +# tcId = 255 +# Flipped bit 121 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad29bba32f + +# tcId = 256 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727691b7bb + +# tcId = 257 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297d2accac + +# tcId = 258 +# Flipped bit 126 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad29bba36d + +# tcId = 259 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0101f0089727691b77b + +# tcId = 260 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef8a2ea200b297d2acc6c + +# tcId = 261 +# Flipped bit 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e290cae26dad29bba3ad + +# tcId = 262 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6af0a293d8cba0101e0089727691b7fb + +# tcId = 263 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d709717c3a4ef8a2eb200b297d2accec + +# tcId = 264 +# Flipped bits 0 and 64 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 58ee3f3b5f83e290cbe26dad29bba32d + +# tcId = 265 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a213d8cba0901f0089727691b7fb + +# tcId = 266 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d60971fc3a4ef822ea200b297d2accec + +# tcId = 267 +# Flipped bits 31 and 63 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3fbb5f83e210cae26dad29bba32d + +# tcId = 268 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6bf0a293d8cba0901f0089727691b77b + +# tcId = 269 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d609717c3a4ef822ea200b297d2acc6c + +# tcId = 270 +# Flipped bits 63 and 127 in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 59ee3f3b5f83e210cae26dad29bba3ad + +# tcId = 271 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 940f5d6c27345fefe0ff768d896e4804 + +# tcId = 272 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = 29f68e83c5b1075d15dff4d682d53313 + +# tcId = 273 +# all bits of tag flipped +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = a611c0c4a07c1d6f351d9252d6445cd2 + +# tcId = 274 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 275 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 276 +# Tag changed to all zero +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 00000000000000000000000000000000 + +# tcId = 277 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 278 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 279 +# tag changed to all 1 +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = ffffffffffffffffffffffffffffffff + +# tcId = 280 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = eb702213584b20909f8009f2f611377b + +# tcId = 281 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = 5689f1fcbace78226aa08ba9fdaa4c6c + +# tcId = 282 +# msbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = d96ebfbbdf0362104a62ed2da93b23ad + +# tcId = 283 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = +result = invalid +tag = 6af1a392d9caa1111e0188737790b6fa + +# tcId = 284 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 0001020304050607 +result = invalid +tag = d708707d3b4ff9a3eb210a287c2bcded + +# tcId = 285 +# lsbs changed in tag +key = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +msg = 000102030405060708090a0b0c0d0e0f +result = invalid +tag = 58ef3e3a5e82e391cbe36cac28baa22c + +[keySize = 0] +[tagSize = 128] + +# tcId = 286 +# invalid key size +key = +msg = 00b9449326d39416 +result = invalid +tag = + +[keySize = 8] +[tagSize = 128] + +# tcId = 287 +# invalid key size +key = 0f +msg = 4538b79a1397e2aa +result = invalid +tag = + +[keySize = 64] +[tagSize = 128] + +# tcId = 288 +# invalid key size +key = a88e385af7185148 +msg = dc63b7ef08096e4f +result = invalid +tag = + +[keySize = 160] +[tagSize = 128] + +# tcId = 289 +# invalid key size +key = 003a228008d390b645929df73a2b2bdd8298918d +msg = ad1d3c3122ab7ac6 +result = invalid +tag = + +[keySize = 320] +[tagSize = 128] + +# tcId = 290 +# invalid key size +key = 94baaac150e2645ae1ec1939c7bcefb73f6edb146fae02289b6c6326ff39bc265d612bef2727fa72 +msg = e3f75a886c4a5591 +result = invalid +tag = + diff --git a/third_party/wycheproof_testvectors/convert_wycheproof.go b/third_party/wycheproof_testvectors/convert_wycheproof.go index 256e57e2..f07621b2 100644 --- a/third_party/wycheproof_testvectors/convert_wycheproof.go +++ b/third_party/wycheproof_testvectors/convert_wycheproof.go @@ -228,6 +228,7 @@ func convertWycheproof(jsonPath, txtPath string) error { func main() { jsonPaths := []string{ "aes_cbc_pkcs5_test.json", + "aes_cmac_test.json", "aes_gcm_siv_test.json", "aes_gcm_test.json", "chacha20_poly1305_test.json",