aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/mac/hmac.vec
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-10 00:08:13 +0000
committerlloyd <[email protected]>2014-01-10 00:08:13 +0000
commit57789bdfc55061002b2727d0b32587612829a37c (patch)
tree99f36631b4ec50c5187a1b0a7c256b99182373ad /src/tests/data/mac/hmac.vec
parent94968c917407a63d888fd3eb4d02491f60de6ebc (diff)
Split up test vectors into per-algo files and app into botan-test for
the tests and botan for everything else.
Diffstat (limited to 'src/tests/data/mac/hmac.vec')
-rw-r--r--src/tests/data/mac/hmac.vec122
1 files changed, 122 insertions, 0 deletions
diff --git a/src/tests/data/mac/hmac.vec b/src/tests/data/mac/hmac.vec
new file mode 100644
index 000000000..c519ed8cd
--- /dev/null
+++ b/src/tests/data/mac/hmac.vec
@@ -0,0 +1,122 @@
+[HMAC(HAS-160)]
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = F5B44115A53F716B6F488DE1098EE7C251418623
+
+Key = 4A656665
+In = 7768617420646F2079612077616E7420666F72206E6F7468696E673F
+Out = A74547C1EF0AA147C7428AB7E71664549BE2A412
+
+Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+In = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
+Out = E4C91BC71782FA44A56BE1A34AAE167E8FFC9734
+
+Key = 0102030405060708090A0B0C0D0E0F10111213141516171819
+In = CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD
+Out = 14D1055DA875222053BF1180BBEF8892EBA3AC30
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = 124131A293F1FDF3D6B11E2B7F7A1F5B12E42D58
+
+Key = A766901C8630F7DB3A3FC2A9747A6E2593452BE7
+In = 54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B6579202D2048617368204B6579204669727374
+Out = 63750D67AF40E3FDE33526545D300972A1527053
+
+[HMAC(MD5)]
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = 9294727A3638BB1C13F48EF8158BFC9D
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = 56461EF2342EDC00F9BAB995690EFD4C
+
+Key = 8FB6AB01840023EC453ECDEC73DC1B66
+In = 54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B6579202D2048617368204B6579204669727374
+Out = 6B1AB7FE4BD7BF8F0B62E6CE61B9D0CD
+
+Key = 8FB6AB01840023EC453ECDEC73DC1B66
+In = 54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B657920616E64204C6172676572205468616E204F6E6520426C6F636B2D53697A652044617461
+Out = 6F630FAD67CDA0EE1FB1F562DB3AA53E
+
+[HMAC(SHA-1)]
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = B617318655057264E28BC0B6FB378C8EF146BE00
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = 4C1A03424B55E07FE7F27BE1D58BB9324A9A5A04
+
+Key = 4CA0EF38F1794B28A8F8EE110EE79D48CE13BE25
+In = 54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B6579202D2048617368204B6579204669727374
+Out = AA4AE5E15272D00E95705637CE8A3B55ED402112
+
+Key = 4CA0EF38F1794B28A8F8EE110EE79D48CE13BE25
+In = 54657374205573696E67204C6172676572205468616E20426C6F636B2D53697A65204B657920616E64204C6172676572205468616E204F6E6520426C6F636B2D53697A652044617461
+Out = E8E99D0F45237D786D6BBAA7965C7808BBFF1A91
+
+Key = 0102030405060708090A0B0C0D0E0F10111213141516171819
+In = CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD
+Out = 4C9007F4026250C6BC8414F9BF50C86C2D7235DA
+
+Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+In = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
+Out = 125D7342B9AC11CD91A39AF48AA17B4F63F175D3
+
+[HMAC(RIPEMD-128)]
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = FBF61F9492AA4BBF81C172E84E0734DB
+
+Key = 0102030405060708090A0B0C0D0E0F10111213141516171819
+In = CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD
+Out = BDBBD7CF03E44B5AA60AF815BE4D2294
+
+Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+In = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
+Out = 09F0B2846D2F543DA363CBEC8D62A38D
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = E79808F24B25FD031C155F0D551D9A3A
+
+[HMAC(RIPEMD-160)]
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = 24CB4BD67D20FC1A5D2ED7732DCC39377F0A5668
+
+Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+In = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
+Out = B0B105360DE759960AB4F35298E116E295D8E7C1
+
+Key = 0102030405060708090A0B0C0D0E0F10111213141516171819
+In = CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD
+Out = D5CA862F4D21D5E610E18B4CF1BEB97A4365ECF4
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = 7619693978F91D90539AE786500FF3D8E0518E39
+
+[HMAC(SHA-256)]
+Key = 0102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20
+In = 616263
+Out = A21B1F5D4CF4F73A4DD939750F7A066A7F98CC131CB16A6692759021CFAB8181
+
+Key = 4A656665
+In = 7768617420646F2079612077616E7420666F72206E6F7468696E673F
+Out = 5BDCC146BF60754E6A042426089575C75A003F089D2739839DEC58B964EC3843
+
+Key = 0102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20
+In = 6162636462636465636465666465666765666768666768696768696A68696A6B696A6B6C6A6B6C6D6B6C6D6E6C6D6E6F6D6E6F706E6F70716162636462636465636465666465666765666768666768696768696A68696A6B696A6B6C6A6B6C6D6B6C6D6E6C6D6E6F6D6E6F706E6F7071
+Out = 470305FC7E40FE34D3EEB3E773D95AAB73ACF0FD060447A5EB4595BF33A9D1A3
+
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = 198A607EB44BFBC69903A0F1CF2BBDC5BA0AA3F3D9AE3C1C7A3B1696A0B68CF7
+
+Key = 0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C
+In = 546573742057697468205472756E636174696F6E
+Out = 7546AF01841FC09B1AB9C3749A5F1C17D4F589668A587B2700A9C97C1193CF42
+