diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-11-13 13:13:33 -0800 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-11-13 13:13:33 -0800 |
commit | e0c1fe9991cb1e428d5179994940726baae899a0 (patch) | |
tree | 218750ad466353a4a9e76edaf237f87270dcd449 /docs/contributing.rst | |
parent | aecee6fac67d0736743c4519e455def7315d2c6b (diff) | |
parent | a659688c5de3c778eb175d0c3eae1db9a2e513a0 (diff) | |
download | cryptography-e0c1fe9991cb1e428d5179994940726baae899a0.tar.gz cryptography-e0c1fe9991cb1e428d5179994940726baae899a0.tar.bz2 cryptography-e0c1fe9991cb1e428d5179994940726baae899a0.zip |
Merge pull request #256 from alex/strong-docs
Explain ways in which we can make our docs stronger
Diffstat (limited to 'docs/contributing.rst')
-rw-r--r-- | docs/contributing.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst index 3b301842..8e5b1ced 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -122,6 +122,18 @@ So, specifically: * No blank line at the end. * Use Sphinx parameter/attribute documentation `syntax`_. +Because of the inherent challenges in implementing correct cryptographic +systems, we want to make our documentation point people in the right directions +as much as possible. To that end: + +* When documenting a generic interface, use a strong algorithm in examples. + (e.g. when showing a hashing example, don't use + :class:`cryptography.hazmat.primitives.hashes.MD5`) +* When giving prescriptive advice, always provide references and supporting + material. +* When there is real disagreement between cryptographic experts, represent both + sides of the argument and describe the tradeoffs clearly. + When documenting a new module in the ``hazmat`` package, its documentation should begin with the "Hazardous Materials" warning: |