aboutsummaryrefslogtreecommitdiffstats
path: root/docs/exceptions.rst
blob: 7f9ae347c9c7cadcb14fbe22e9be47a453b17af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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:: UnsupportedAlgorithm

    This is raised when a backend doesn't support the requested algorithm (or
    combination of algorithms).


.. 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:: UnsupportedPadding

    This is raised when the chosen padding is not supported by the backend.