aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/hkdf.rst
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-01-06 15:00:28 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2018-01-06 16:00:28 -0500
commit323f2ad66befb13ec3b31b5ab99c9448b9a6b067 (patch)
treeebf189232140ab50ae11d04229f45b03a5e7fa09 /docs/development/custom-vectors/hkdf.rst
parentf8327a977f31ef1d66c11555d65deb1c3f263bc5 (diff)
downloadcryptography-323f2ad66befb13ec3b31b5ab99c9448b9a6b067.tar.gz
cryptography-323f2ad66befb13ec3b31b5ab99c9448b9a6b067.tar.bz2
cryptography-323f2ad66befb13ec3b31b5ab99c9448b9a6b067.zip
add 1200 byte HKDF test vector and a generator/verifier for it (#4074)
* add 1200 byte HKDF test vector and a generator/verifier for it * exit non-zero when failing * ugh
Diffstat (limited to 'docs/development/custom-vectors/hkdf.rst')
-rw-r--r--docs/development/custom-vectors/hkdf.rst28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/development/custom-vectors/hkdf.rst b/docs/development/custom-vectors/hkdf.rst
new file mode 100644
index 00000000..0e1a729a
--- /dev/null
+++ b/docs/development/custom-vectors/hkdf.rst
@@ -0,0 +1,28 @@
+HKDF vector creation
+====================
+
+This page documents the code that was used to generate a longer
+HKDF test vector (1200 bytes) than is available in RFC 5869. All
+the vectors were generated using OpenSSL and verified with Go.
+
+Creation
+--------
+
+The following Python script was run to generate the vector files.
+
+.. literalinclude:: /development/custom-vectors/hkdf/generate_hkdf.py
+
+Download link: :download:`generate_hkdf.py
+</development/custom-vectors/hkdf/generate_hkdf.py>`
+
+
+Verification
+------------
+
+The following Go code was used to verify the vectors.
+
+.. literalinclude:: /development/custom-vectors/hkdf/verify_hkdf.go
+ :language: go
+
+Download link: :download:`verify_hkdf.go
+</development/custom-vectors/hkdf/verify_hkdf.go>`