diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-08 09:17:02 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-08 11:38:10 -0500 |
commit | 6d8f9b0273e2edfbbf5fedc5dbc5c2c427a3e3e9 (patch) | |
tree | d360ef25b99c7c88a399a1017420a058c83c7cb3 /docs/development/custom-vectors/seed.rst | |
parent | fb201e9f21c19d2e31020012fafdeb85083d36c4 (diff) | |
download | cryptography-6d8f9b0273e2edfbbf5fedc5dbc5c2c427a3e3e9.tar.gz cryptography-6d8f9b0273e2edfbbf5fedc5dbc5c2c427a3e3e9.tar.bz2 cryptography-6d8f9b0273e2edfbbf5fedc5dbc5c2c427a3e3e9.zip |
add SEED CFB/OFB bespoke vectors and documentation
Diffstat (limited to 'docs/development/custom-vectors/seed.rst')
-rw-r--r-- | docs/development/custom-vectors/seed.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/development/custom-vectors/seed.rst b/docs/development/custom-vectors/seed.rst new file mode 100644 index 00000000..d26345fa --- /dev/null +++ b/docs/development/custom-vectors/seed.rst @@ -0,0 +1,30 @@ +SEED vector creation +===================== + +This page documents the code that was used to generate the SEED CFB and OFB +test vectors as well as the code used to verify them against another +implementation. For SEED the vectors were generated using OpenSSL and verified +with Botan. + +Creation +-------- + +``cryptography`` was modified to support SEED in CFB and OFB modes. Then +the following python script was run to generate the vector files. + +.. literalinclude:: /development/custom-vectors/seed/generate_seed.py + +Download link: :download:`generate_seed.py </development/custom-vectors/seed/generate_seed.py>` + + +Verification +------------ + +The following python code was used to verify the vectors using the `Botan`_ +project's Python bindings. + +.. literalinclude:: /development/custom-vectors/seed/verify_seed.py + +Download link: :download:`verify_seed.py </development/custom-vectors/seed/verify_seed.py>` + +.. _`Botan`: http://botan.randombit.net |