From 8ab7a360330daa195ea1c0cf70d606dc7dce88c8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 19 Apr 2014 09:34:56 -0500 Subject: remove InvalidDecryption and replace with ValueError --- docs/exceptions.rst | 4 ---- docs/hazmat/primitives/asymmetric/rsa.rst | 7 ++----- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'docs') diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 23e0df0a..28da8ecc 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -43,7 +43,3 @@ Exceptions This is raised when the verify method of a one time password function's computed token does not match the expected token. - -.. class:: InvalidDecryption - - This is raised when RSA decryption does not succeed. diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index e72e8835..aef15691 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -143,11 +143,8 @@ 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 cryptography.exceptions.InvalidDecryption: This is raised if - decryption fails due to invalid ciphertext. + :raises ValueError: This is raised when decryption fails or the chosen + hash algorithm is too large for the key size. .. class:: RSAPublicKey(public_exponent, modulus) -- cgit v1.2.3