diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-12 16:17:04 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-12 16:17:04 -0600 |
commit | cf6ffb5ef3b50fb6485f3e669c28156c03a5420c (patch) | |
tree | 17e5a8e9bcd70db1e692912113febe5d9ae09ff2 /docs/development/test-vectors.rst | |
parent | 493efbb64095dca073926a07fdc654418490d8be (diff) | |
download | cryptography-cf6ffb5ef3b50fb6485f3e669c28156c03a5420c.tar.gz cryptography-cf6ffb5ef3b50fb6485f3e669c28156c03a5420c.tar.bz2 cryptography-cf6ffb5ef3b50fb6485f3e669c28156c03a5420c.zip |
add cast5 (cbc, cfb, ofb) vector source info to docs
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/ |