aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/arc4.rst
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-28 13:23:34 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-28 13:23:34 -0600
commit5dcdd10b0ce56da1d7088d80b4e24c66e5407e35 (patch)
treefb8eb099222e2fd33ead0c090808a6277d94f2ec /docs/development/custom-vectors/arc4.rst
parent7f7fab8f2bb48056149e2717f440b13c3ce5fcf8 (diff)
parent6c83cc6d867ee8060b4826ca160770fb6968d784 (diff)
downloadcryptography-5dcdd10b0ce56da1d7088d80b4e24c66e5407e35.tar.gz
cryptography-5dcdd10b0ce56da1d7088d80b4e24c66e5407e35.tar.bz2
cryptography-5dcdd10b0ce56da1d7088d80b4e24c66e5407e35.zip
Merge pull request #2495 from eakret/master
Add support for 160 bit ARC4 keys
Diffstat (limited to 'docs/development/custom-vectors/arc4.rst')
-rw-r--r--docs/development/custom-vectors/arc4.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/development/custom-vectors/arc4.rst b/docs/development/custom-vectors/arc4.rst
new file mode 100644
index 00000000..ed8cd548
--- /dev/null
+++ b/docs/development/custom-vectors/arc4.rst
@@ -0,0 +1,30 @@
+ARC4 vector creation
+====================
+
+This page documents the code that was used to generate the ARC4 test
+vectors for key lengths not available in RFC 6229. All the vectors
+were generated using OpenSSL and verified with Go.
+
+Creation
+--------
+
+``cryptography`` was modified to support ARC4 key lengths not listed
+in RFC 6229. Then the following Python script was run to generate the
+vector files.
+
+.. literalinclude:: /development/custom-vectors/arc4/generate_arc4.py
+
+Download link: :download:`generate_arc4.py
+</development/custom-vectors/arc4/generate_arc4.py>`
+
+
+Verification
+------------
+
+The following Go code was used to verify the vectors.
+
+.. literalinclude:: /development/custom-vectors/arc4/verify_arc4.go
+ :language: go
+
+Download link: :download:`verify_arc4.go
+</development/custom-vectors/arc4/verify_arc4.go>`