blob: e5010ebe89e1dd63ef386d0e94283ec37be40727 [file] [log] [blame]
Exceptions
==========
.. currentmodule:: cryptography.exceptions
.. class:: AlreadyFinalized
This is raised when a context is used after being finalized.
.. class:: InvalidSignature
This is raised when signature verification fails. This can occur with
HMAC or asymmetric key signature validation.
.. class:: NotYetFinalized
This is raised when the AEAD tag property is accessed on a context
before it is finalized.
.. class:: AlreadyUpdated
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
This is raised when the verify method of a key derivation function's
computed key does not match the expected key.
.. class:: InvalidToken
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.