aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/asymmetric/padding.rst
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-11 21:18:06 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-11 21:18:06 -0400
commit26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462 (patch)
treec1eff80b8756af3f7613fb6deb231d8b404f5ad2 /docs/hazmat/primitives/asymmetric/padding.rst
parentd70ed95d37e3ce5f86ed8018e5051ad3aed9fe3a (diff)
downloadcryptography-26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462.tar.gz
cryptography-26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462.tar.bz2
cryptography-26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462.zip
document MAX_LENGTH
Diffstat (limited to 'docs/hazmat/primitives/asymmetric/padding.rst')
-rw-r--r--docs/hazmat/primitives/asymmetric/padding.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/padding.rst b/docs/hazmat/primitives/asymmetric/padding.rst
index 632f6985..8a034329 100644
--- a/docs/hazmat/primitives/asymmetric/padding.rst
+++ b/docs/hazmat/primitives/asymmetric/padding.rst
@@ -34,5 +34,10 @@ Mask Generation Functions
:param int salt_length: The length of the salt. It is recommended that this
be set to ``MGF1.MAX_LENGTH``.
+ .. attribute:: MAX_LENGTH
+
+ Pass this attribute to ``salt_length`` to get the maximum salt length
+ available.
+
.. _`Padding is critical`: http://rdist.root.org/2009/10/06/why-rsa-encryption-padding-is-critical/