aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/idea.rst
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2014-03-11 13:59:01 +0100
committerHynek Schlawack <hs@ox.cx>2014-03-11 13:59:01 +0100
commitc99c2148fa8f27678acab4d9d02297cf097c77cf (patch)
treeebc45fb52956c0ffd2245d8c7362c5e97d7c42e1 /docs/development/custom-vectors/idea.rst
parent7e0a31350a5d263abf462f343ef586111a839495 (diff)
parent24d5db8ada4d762c162a8160411e1b7d68611c45 (diff)
downloadcryptography-c99c2148fa8f27678acab4d9d02297cf097c77cf.tar.gz
cryptography-c99c2148fa8f27678acab4d9d02297cf097c77cf.tar.bz2
cryptography-c99c2148fa8f27678acab4d9d02297cf097c77cf.zip
Merge pull request #396 from reaperhulk/idea-bespoke-vectors
CBC, CFB, OFB IDEA vectors built from the AES MMT tests
Diffstat (limited to 'docs/development/custom-vectors/idea.rst')
-rw-r--r--docs/development/custom-vectors/idea.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/development/custom-vectors/idea.rst b/docs/development/custom-vectors/idea.rst
new file mode 100644
index 00000000..68c00b85
--- /dev/null
+++ b/docs/development/custom-vectors/idea.rst
@@ -0,0 +1,30 @@
+IDEA Vector Creation
+=====================
+
+This page documents the code that was used to generate the IDEA CBC, CFB, and
+OFB test vectors as well as the code used to verify them against another
+implementation. For IDEA the vectors were generated using OpenSSL and verified
+with Go.
+
+Creation
+--------
+
+``cryptography`` was modified to support IDEA in CBC, CFB, and OFB modes. Then
+the following python script was run to generate the vector files.
+
+.. literalinclude:: /development/custom-vectors/idea/generate_idea.py
+
+Download link: :download:`generate_idea.py </development/custom-vectors/idea/generate_idea.py>`
+
+
+Verification
+------------
+
+The following python code was used to verify the vectors using the `Botan`_
+project's Python bindings.
+
+.. literalinclude:: /development/custom-vectors/idea/verify_idea.py
+
+Download link: :download:`verify_idea.py </development/custom-vectors/idea/verify_idea.py>`
+
+.. _`Botan`: http://botan.randombit.net