From 7a489dbd116edd4ca5a6104b74748f3a4f712d15 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 22 Mar 2014 15:09:34 -0700 Subject: Fixed #809 -- switch back to always using UnsupportedAlgorithm --- docs/exceptions.rst | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'docs/exceptions.rst') diff --git a/docs/exceptions.rst b/docs/exceptions.rst index e5010ebe..28da8ecc 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -3,6 +3,13 @@ Exceptions .. currentmodule:: cryptography.exceptions + +.. class:: UnsupportedAlgorithm + + Raised when the requested algorithm, or combination of algorithms is not + supported. + + .. class:: AlreadyFinalized This is raised when a context is used after being finalized. @@ -25,25 +32,6 @@ Exceptions This is raised when additional data is added to a context after update has already been called. -.. class:: UnsupportedCipher - - .. versionadded:: 0.3 - - This is raised when a backend doesn't support the requested cipher - algorithm and mode combination. - -.. class:: UnsupportedHash - - .. versionadded:: 0.3 - - This is raised when a backend doesn't support the requested hash algorithm. - -.. class:: UnsupportedPadding - - .. versionadded:: 0.3 - - This is raised when the requested padding is not supported by the backend. - .. class:: InvalidKey @@ -55,10 +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:: UnsupportedInterface - - .. versionadded:: 0.3 - - This is raised when the provided backend does not support the required - interface. -- cgit v1.2.3