diff options
author | David Reid <dreid@dreid.org> | 2014-02-12 16:47:00 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-02-12 16:47:00 -0800 |
commit | 93b37348f1cf2a30a54aa0e4229493d2ff8c108a (patch) | |
tree | 9e6ac4a335d4ad806988c4ba5dfe6d26e8505ebf /docs/development/test-vectors.rst | |
parent | da2d57c43348a7c8f78eadaf298c90930cc64a85 (diff) | |
parent | af6ad144eff9636013f7c21e198a8acab7a510b2 (diff) | |
download | cryptography-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/test-vectors.rst')
-rw-r--r-- | docs/development/test-vectors.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index 2a071d7c..3b8632e6 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -54,8 +54,34 @@ Symmetric Ciphers * Camellia (ECB) from NTT's `Camellia page`_ as linked by `CRYPTREC`_. * Camellia (CBC, CFB, OFB) from `OpenSSL's test vectors`_. * CAST5 (ECB) from :rfc:`2144`. +* CAST5 (CBC, CFB, OFB) generated by this project. + See: :doc:`/development/custom-vectors/cast5` +Creating Test Vectors +--------------------- + +When official vectors are unavailable ``cryptography`` may choose to build +its own using existing vectors as source material. Current custom vectors: + +.. toctree:: + :maxdepth: 1 + + custom-vectors/cast5 + +If official test vectors appear in the future the custom generated vectors +should be discarded. + +Any vectors generated by this method must also be prefixed with the following +header format (substituting the correct information): + +.. code-block:: python + + # CAST5 CBC vectors built for https://github.com/pyca/cryptography + # Derived from the AESVS MMT test data for CBC + # Verified against the CommonCrypto and Go crypto packages + # Key Length : 128 + .. _`NIST`: http://www.nist.gov/ .. _`IETF`: https://www.ietf.org/ .. _`NIST CAVP`: http://csrc.nist.gov/groups/STM/cavp/ |