From 798c03456d6f1fa8f27433a7e3928d583e1e120f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 19 Mar 2014 18:41:35 -0400 Subject: document the ValueError --- docs/hazmat/primitives/asymmetric/rsa.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/hazmat/primitives/asymmetric/rsa.rst') diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index dbb0da4f..57c8eec2 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -108,6 +108,9 @@ RSA :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding` provider. + :raises ValueError: This is raised when the chosen hash algorithm is + too large for the key size. + :raises UnsupportedHash: This is raised when the backend does not support the chosen hash algorithm. If the padding is :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` @@ -210,6 +213,9 @@ RSA :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding` provider. + :raises ValueError: This is raised when the chosen hash algorithm is + too large for the key size. + :raises UnsupportedHash: This is raised when the backend does not support the chosen hash algorithm. If the padding is :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` -- cgit v1.2.3