diff options
author | lloyd <lloyd@randombit.net> | 2014-11-07 14:55:18 +0000 |
---|---|---|
committer | lloyd <lloyd@randombit.net> | 2014-11-07 14:55:18 +0000 |
commit | ce72ae0073b18f82efe558a3bf44564f0245d6db (patch) | |
tree | d5f3a6616ff5f0e934451a89dded69d790bf4cb0 /src/tests/data | |
parent | fff58f919f5d142e5b3dd896c747943e92b3e646 (diff) |
OCB cleanup and additional tests
Diffstat (limited to 'src/tests/data')
-rw-r--r-- | src/tests/data/aead/ocb.vec | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/src/tests/data/aead/ocb.vec b/src/tests/data/aead/ocb.vec index 63f3143d2..b8220d6bf 100644 --- a/src/tests/data/aead/ocb.vec +++ b/src/tests/data/aead/ocb.vec @@ -46,3 +46,107 @@ Nonce = 000102030405060708090A0B Key = 000102030405060708090A0B0C0D0E0F Out = BEA5E8798DBE7110031C144DA0B26122CEAAB9B05DF771A657149D53773463CB68C65778B058A635659C623211DEEA0DE30D2C381879F4C8 +# From RFC 7253 + +Nonce = BBAA99887766554433221100 +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = +Out = 785407BFFFC8AD9EDCC5520AC9111EE6 + +Nonce = BBAA99887766554433221101 +Key = 000102030405060708090A0B0C0D0E0F +AD = 0001020304050607 +In = 0001020304050607 +Out = 6820B3657B6F615A5725BDA0D3B4EB3A257C9AF1F8F03009 + +Nonce = BBAA99887766554433221102 +Key = 000102030405060708090A0B0C0D0E0F +AD = 0001020304050607 +In = +Out = 81017F8203F081277152FADE694A0A00 + +Nonce = BBAA99887766554433221103 +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = 0001020304050607 +Out = 45DD69F8F5AAE72414054CD1F35D82760B2CD00D2F99BFA9 + +Nonce = BBAA99887766554433221104 +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F +In = 000102030405060708090A0B0C0D0E0F +Out = 571D535B60B277188BE5147170A9A22C3AD7A4FF3835B8C5701C1CCEC8FC3358 + +Nonce = BBAA99887766554433221105 +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F +In = +Out = 8CF761B6902EF764462AD86498CA6B97 + +Nonce = BBAA99887766554433221106 +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = 000102030405060708090A0B0C0D0E0F +Out = 5CE88EC2E0692706A915C00AEB8B2396F40E1C743F52436BDF06D8FA1ECA343D + +Nonce = BBAA99887766554433221107 +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F1011121314151617 +In = 000102030405060708090A0B0C0D0E0F1011121314151617 +Out = 1CA2207308C87C010756104D8840CE1952F09673A448A122C92C62241051F57356D7F3C90BB0E07F + +Nonce = BBAA99887766554433221108 +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F1011121314151617 +In = +Out = 6DC225A071FC1B9F7C69F93B0F1E10DE + +Nonce = BBAA99887766554433221109 +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = 000102030405060708090A0B0C0D0E0F1011121314151617 +Out = 221BD0DE7FA6FE993ECCD769460A0AF2D6CDED0C395B1C3CE725F32494B9F914D85C0B1EB38357FF + +Nonce = BBAA9988776655443322110A +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F +In = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F +Out = BD6F6C496201C69296C11EFD138A467ABD3C707924B964DEAFFC40319AF5A48540FBBA186C5553C68AD9F592A79A4240 + +Nonce = BBAA9988776655443322110B +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F +In = +Out = FE80690BEE8A485D11F32965BC9D2A32 + +Nonce = BBAA9988776655443322110C +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F +Out = 2942BFC773BDA23CABC6ACFD9BFD5835BD300F0973792EF46040C53F1432BCDFB5E1DDE3BC18A5F840B52E653444D5DF + +Nonce = BBAA9988776655443322110D +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +In = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +Out = D5CA91748410C1751FF8A2F618255B68A0A12E093FF454606E59F9C1D0DDC54B65E8628E568BAD7AED07BA06A4A69483A7035490C5769E60 + +Nonce = BBAA9988776655443322110E +Key = 000102030405060708090A0B0C0D0E0F +AD = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +In = +Out = C5CD9D1850C141E358649994EE701B68 + +Nonce = BBAA9988776655443322110F +Key = 000102030405060708090A0B0C0D0E0F +AD = +In = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +Out = 4412923493C57D5DE0D700F753CCE0D1D2D95060122E9F15A5DDBFC5787E50B5CC55EE507BCB084E479AD363AC366B95A98CA5F3000B1479 + +[AES-128/OCB(12)] +Key = 0F0E0D0C0B0A09080706050403020100 +Nonce = BBAA9988776655443322110D +AD = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +In = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F2021222324252627 +Out = 1792A4E31E0755FB03E31B22116E6C2DDF9EFD6E33D536F1A0124B0A55BAE884ED93481529C76B6AD0C515F4D1CDD4FDAC4F02AA |