exceptions.rst 853 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Exceptions
  2. ==========
  3. .. currentmodule:: cryptography.exceptions
  4. .. class:: UnsupportedAlgorithm
  5. Raised when the requested algorithm, or combination of algorithms is not
  6. supported.
  7. .. class:: AlreadyFinalized
  8. This is raised when a context is used after being finalized.
  9. .. class:: InvalidSignature
  10. This is raised when signature verification fails. This can occur with
  11. HMAC or asymmetric key signature validation.
  12. .. class:: NotYetFinalized
  13. This is raised when the AEAD tag property is accessed on a context
  14. before it is finalized.
  15. .. class:: AlreadyUpdated
  16. This is raised when additional data is added to a context after update
  17. has already been called.
  18. .. class:: InvalidKey
  19. This is raised when the verify method of a key derivation function's
  20. computed key does not match the expected key.