2013-11-02 21:03:34 +00:00
|
|
|
Exceptions
|
|
|
|
|
==========
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: cryptography.exceptions
|
|
|
|
|
|
2013-11-13 18:01:15 +00:00
|
|
|
.. class:: AlreadyFinalized
|
|
|
|
|
|
2013-11-13 21:02:44 +00:00
|
|
|
This is raised when a context is used after being finalized.
|
2013-11-13 18:01:15 +00:00
|
|
|
|
2013-11-22 20:10:59 +00:00
|
|
|
|
2013-12-25 19:00:49 +00:00
|
|
|
.. class:: InvalidSignature
|
|
|
|
|
|
2013-12-27 05:12:58 +00:00
|
|
|
This is raised when the verify method of a hash context does not
|
2013-12-25 19:00:49 +00:00
|
|
|
compare equal.
|
|
|
|
|
|
|
|
|
|
|
2013-11-22 20:10:59 +00:00
|
|
|
.. class:: NotYetFinalized
|
2013-11-21 03:27:00 +00:00
|
|
|
|
|
|
|
|
This is raised when the AEAD tag property is accessed on a context
|
|
|
|
|
before it is finalized.
|
|
|
|
|
|
2013-11-13 18:01:15 +00:00
|
|
|
|
2013-11-22 20:10:59 +00:00
|
|
|
.. class:: AlreadyUpdated
|
|
|
|
|
|
|
|
|
|
This is raised when additional data is added to a context after update
|
|
|
|
|
has already been called.
|
|
|
|
|
|
|
|
|
|
|
2013-11-02 23:57:10 +00:00
|
|
|
.. class:: UnsupportedAlgorithm
|
2013-11-02 21:03:34 +00:00
|
|
|
|
|
|
|
|
This is raised when a backend doesn't support the requested algorithm (or
|
|
|
|
|
combination of algorithms).
|