blob: 59d7d9d7acffc807615880eed1f5c19a0a15fba5 [file] [log] [blame]
Alex Gaynorf1a3fc02013-11-02 14:03:34 -07001Exceptions
2==========
3
4.. currentmodule:: cryptography.exceptions
5
Alex Gaynor7a489db2014-03-22 15:09:34 -07006
7.. class:: UnsupportedAlgorithm
8
9 Raised when the requested algorithm, or combination of algorithms is not
10 supported.
11
12
David Reid6392a9c2013-11-13 10:01:15 -080013.. class:: AlreadyFinalized
14
David Reid00fb12a2013-11-13 13:02:44 -080015 This is raised when a context is used after being finalized.
David Reid6392a9c2013-11-13 10:01:15 -080016
Paul Kehrerce9c6112013-11-22 14:10:59 -060017
Julian Krausec91fe6a2013-12-25 11:00:49 -080018.. class:: InvalidSignature
19
Paul Kehrer42b37132014-02-23 19:13:19 -060020 This is raised when signature verification fails. This can occur with
21 HMAC or asymmetric key signature validation.
Julian Krausec91fe6a2013-12-25 11:00:49 -080022
23
Paul Kehrerce9c6112013-11-22 14:10:59 -060024.. class:: NotYetFinalized
Paul Kehrer22e80cb2013-11-20 21:27:00 -060025
26 This is raised when the AEAD tag property is accessed on a context
27 before it is finalized.
28
David Reid6392a9c2013-11-13 10:01:15 -080029
Paul Kehrerce9c6112013-11-22 14:10:59 -060030.. class:: AlreadyUpdated
31
32 This is raised when additional data is added to a context after update
33 has already been called.
34
Alex Gaynorb2774f52014-01-27 11:05:29 -080035
36.. class:: InvalidKey
37
Alex Gaynor288403a2014-01-27 15:59:17 -080038 This is raised when the verify method of a key derivation function's
39 computed key does not match the expected key.