Exceptions¶
-
class
cryptography.exceptions.UnsupportedAlgorithm[source]¶ Raised when the requested algorithm, or combination of algorithms is not supported.
-
class
cryptography.exceptions.AlreadyFinalized[source]¶ This is raised when a context is used after being finalized.
-
class
cryptography.exceptions.InvalidSignature[source]¶ This is raised when signature verification fails. This can occur with HMAC or asymmetric key signature validation.
-
class
cryptography.exceptions.NotYetFinalized[source]¶ This is raised when the AEAD tag property is accessed on a context before it is finalized.