blob: 1fbd326709401e7d94a538df09ca2a8468370f98 [file] [log] [blame]
Alex Gaynorf1a3fc02013-11-02 14:03:34 -07001Exceptions
2==========
3
4.. currentmodule:: cryptography.exceptions
5
David Reid6392a9c2013-11-13 10:01:15 -08006.. class:: AlreadyFinalized
7
David Reid00fb12a2013-11-13 13:02:44 -08008 This is raised when a context is used after being finalized.
David Reid6392a9c2013-11-13 10:01:15 -08009
Paul Kehrerce9c6112013-11-22 14:10:59 -060010
Julian Krausec91fe6a2013-12-25 11:00:49 -080011.. class:: InvalidSignature
12
Julian Krause831467c2013-12-26 21:12:58 -080013 This is raised when the verify method of a hash context does not
Julian Krausec91fe6a2013-12-25 11:00:49 -080014 compare equal.
15
16
Paul Kehrerce9c6112013-11-22 14:10:59 -060017.. class:: NotYetFinalized
Paul Kehrer22e80cb2013-11-20 21:27:00 -060018
19 This is raised when the AEAD tag property is accessed on a context
20 before it is finalized.
21
David Reid6392a9c2013-11-13 10:01:15 -080022
Paul Kehrerce9c6112013-11-22 14:10:59 -060023.. class:: AlreadyUpdated
24
25 This is raised when additional data is added to a context after update
26 has already been called.
27
28
Alex Gaynor3949f112013-11-02 16:57:10 -070029.. class:: UnsupportedAlgorithm
Alex Gaynorf1a3fc02013-11-02 14:03:34 -070030
31 This is raised when a backend doesn't support the requested algorithm (or
32 combination of algorithms).