aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/development/test-vectors.rst2
-rw-r--r--vectors/cryptography_vectors/hashes/blake2/blake2b.txt27
-rw-r--r--vectors/cryptography_vectors/hashes/blake2/blake2s.txt27
3 files changed, 56 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst
index cc44492f..016073e8 100644
--- a/docs/development/test-vectors.rst
+++ b/docs/development/test-vectors.rst
@@ -331,6 +331,7 @@ Hashes
* SHA1 from `NIST CAVP`_.
* SHA2 (224, 256, 384, 512) from `NIST CAVP`_.
* Whirlpool from the `Whirlpool website`_.
+* Blake2s and Blake2b from OpenSSL `test/evptests.txt`_.
HMAC
~~~~
@@ -456,3 +457,4 @@ header format (substituting the correct information):
.. _`asymmetric/public/PKCS1/dsa.pub.pem`: https://github.com/ruby/ruby/blob/4ccb387f3bc436a08fc6d72c4931994f5de95110/test/openssl/test_pkey_dsa.rb#L53
.. _`Mozilla bug`: https://bugzilla.mozilla.org/show_bug.cgi?id=233586
.. _`Russian CA`: http://e-trust.gosuslugi.ru/MainCA
+.. _`test/evptests.txt`: https://github.com/openssl/openssl/blob/2d0b44126763f989a4cbffbffe9d0c7518158bb7/test/evptests.txt
diff --git a/vectors/cryptography_vectors/hashes/blake2/blake2b.txt b/vectors/cryptography_vectors/hashes/blake2/blake2b.txt
new file mode 100644
index 00000000..7710881b
--- /dev/null
+++ b/vectors/cryptography_vectors/hashes/blake2/blake2b.txt
@@ -0,0 +1,27 @@
+Len = 0
+Msg = 00
+MD = 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce
+
+Len = 8
+Msg = 61
+MD = 333fcb4ee1aa7c115355ec66ceac917c8bfd815bf7587d325aec1864edd24e34d5abe2c6b1b5ee3face62fed78dbef802f2a85cb91d455a8f5249d330853cb3c
+
+Len = 24
+Msg = 616263
+MD = ba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b12bb6fdbffa2d17d87c5392aab792dc252d5de4533cc9518d38aa8dbf1925ab92386edd4009923
+
+Len = 112
+Msg = 6d65737361676520646967657374
+MD = 3c26ce487b1c0f062363afa3c675ebdbf5f4ef9bdc022cfbef91e3111cdc283840d8331fc30a8a0906cff4bcdbcd230c61aaec60fdfad457ed96b709a382359a
+
+Len = 208
+Msg = 6162636465666768696a6b6c6d6e6f707172737475767778797a
+MD = c68ede143e416eb7b4aaae0d8e48e55dd529eafed10b1df1a61416953a2b0a5666c761e7d412e6709e31ffe221b7a7a73908cb95a4d120b8b090a87d1fbedb4c
+
+Len = 496
+Msg = 4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839
+MD = 99964802e5c25e703722905d3fb80046b6bca698ca9e2cc7e49b4fe1fa087c2edf0312dfbb275cf250a1e542fd5dc2edd313f9c491127c2e8c0c9b24168e2d50
+
+Len = 640
+Msg = 3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930
+MD = 686f41ec5afff6e87e1f076f542aa466466ff5fbde162c48481ba48a748d842799f5b30f5b67fc684771b33b994206d05cc310f31914edd7b97e41860d77d282
diff --git a/vectors/cryptography_vectors/hashes/blake2/blake2s.txt b/vectors/cryptography_vectors/hashes/blake2/blake2s.txt
new file mode 100644
index 00000000..4198d666
--- /dev/null
+++ b/vectors/cryptography_vectors/hashes/blake2/blake2s.txt
@@ -0,0 +1,27 @@
+Len = 0
+Msg = 00
+MD = 69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9
+
+Len = 8
+Msg = 61
+MD = 4a0d129873403037c2cd9b9048203687f6233fb6738956e0349bd4320fec3e90
+
+Len = 24
+Msg = 616263
+MD = 508c5e8c327c14e2e1a72ba34eeb452f37458b209ed63a294d999b4c86675982
+
+Len = 112
+Msg = 6d65737361676520646967657374
+MD = fa10ab775acf89b7d3c8a6e823d586f6b67bdbac4ce207fe145b7d3ac25cd28c
+
+Len = 208
+Msg = 6162636465666768696a6b6c6d6e6f707172737475767778797a
+MD = bdf88eb1f86a0cdf0e840ba88fa118508369df186c7355b4b16cf79fa2710a12
+
+Len = 496
+Msg = 4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839
+MD = c75439ea17e1de6fa4510c335dc3d3f343e6f9e1ce2773e25b4174f1df8b119b
+
+Len = 640
+Msg = 3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930
+MD = fdaedb290a0d5af9870864fec2e090200989dc9cd53a3c092129e8535e8b4f66