From a39a319b096b1b2b1775ae1a91117c19422a6c81 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Fri, 14 Mar 2014 20:03:12 +0000 Subject: Move cryptography.vectors to cryptography_vectors All vectors are now stored in the subpackage in the vectors/ folder. This package is automatically installed by setup.py test and will also be uploaded with a matching version number by the PyPI upload task. --- .../cryptography_vectors/HMAC/rfc-4231-sha256.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 vectors/cryptography_vectors/HMAC/rfc-4231-sha256.txt (limited to 'vectors/cryptography_vectors/HMAC/rfc-4231-sha256.txt') diff --git a/vectors/cryptography_vectors/HMAC/rfc-4231-sha256.txt b/vectors/cryptography_vectors/HMAC/rfc-4231-sha256.txt new file mode 100644 index 00000000..94f6b6eb --- /dev/null +++ b/vectors/cryptography_vectors/HMAC/rfc-4231-sha256.txt @@ -0,0 +1,38 @@ +# Test Cases for HMAC-SHA256 + +Len = 64 +Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b +# "Hi There" +Msg = 4869205468657265 +MD = b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7 + +Len = 224 +# "Jefe" +Key = 4a656665 +# "what do ya want for nothing?" +Msg = 7768617420646f2079612077616e7420666f72206e6f7468696e673f +MD = 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843 + +Len = 400 +Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +Msg = dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +MD = 773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe + +Len = 400 +Key = 0102030405060708090a0b0c0d0e0f10111213141516171819 +Msg = cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd +MD = 82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b + +# truncation test from RFC not added + +Len = 432 +Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +# "Test Using Larger Than Block-Size Key - Hash Key First" +Msg = 54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374 +MD = 60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54 + +Len = 1216 +Key = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +# "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data" +Msg = 5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e +MD = 9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2 -- cgit v1.2.3