From 26e5d3fb3e3bd10e97a473ba41f6e0bfc03d7462 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 11 Mar 2014 21:18:06 -0400 Subject: document MAX_LENGTH --- docs/hazmat/primitives/asymmetric/padding.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/hazmat/primitives/asymmetric/padding.rst') 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/ -- cgit v1.2.3