aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/cast5.rst
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2014-02-12 16:47:00 -0800
committerDavid Reid <dreid@dreid.org>2014-02-12 16:47:00 -0800
commit93b37348f1cf2a30a54aa0e4229493d2ff8c108a (patch)
tree9e6ac4a335d4ad806988c4ba5dfe6d26e8505ebf /docs/development/custom-vectors/cast5.rst
parentda2d57c43348a7c8f78eadaf298c90930cc64a85 (diff)
parentaf6ad144eff9636013f7c21e198a8acab7a510b2 (diff)
downloadcryptography-93b37348f1cf2a30a54aa0e4229493d2ff8c108a.tar.gz
cryptography-93b37348f1cf2a30a54aa0e4229493d2ff8c108a.tar.bz2
cryptography-93b37348f1cf2a30a54aa0e4229493d2ff8c108a.zip
Merge pull request #589 from reaperhulk/cast5-bespoke-vectors
CAST5 CBC, OFB, CFB vectors made from the AES MMT test data
Diffstat (limited to 'docs/development/custom-vectors/cast5.rst')
-rw-r--r--docs/development/custom-vectors/cast5.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/development/custom-vectors/cast5.rst b/docs/development/custom-vectors/cast5.rst
new file mode 100644
index 00000000..7f1d72c1
--- /dev/null
+++ b/docs/development/custom-vectors/cast5.rst
@@ -0,0 +1,27 @@
+CAST5 Vector Creation
+=====================
+
+This page documents the code that was used to generate the CAST5 CBC, CFB, and
+OFB test vectors as well as the code used to verify them against another
+implementation. For CAST5 the vectors were generated using OpenSSL and verified
+with Go.
+
+Creation
+--------
+
+``cryptography`` was modified to support CAST5 in CBC, CFB, and OFB modes. Then
+the following python script was run to generate the vector files.
+
+.. literalinclude:: /development/custom-vectors/cast5/generate_cast5.py
+
+Download link: :download:`generate_cast5.py </development/custom-vectors/cast5/generate_cast5.py>`
+
+
+Verification
+------------
+
+The following go code was used to verify the vectors.
+
+.. literalinclude:: /development/custom-vectors/cast5/verify_cast5.go
+
+Download link: :download:`verify_cast5.go </development/custom-vectors/cast5/verify_cast5.go>`