Exception classes¶
Exceptions raised by the ciphers are defined here.
- exception pyflocker.ciphers.exc.DecryptionError[source]¶
Bases:
Exception
Can be raised in two cases:
AEAD ciphers failed to verify the decryption.
Asymmetric ciphers (RSA) failed to decrypt the data.
- exception pyflocker.ciphers.exc.SignatureError[source]¶
Bases:
Exception
Raised when the signature is invalid.
- exception pyflocker.ciphers.exc.FinalizationError[source]¶
Bases:
Exception
Base exception class for all finalization and context destruction related errors.
- exception pyflocker.ciphers.exc.UnsupportedAlgorithm[source]¶
Bases:
Exception
Raised if the backend does not support the algorithm.
- exception pyflocker.ciphers.exc.UnsupportedMode[source]¶
Bases:
Exception
Raised if the backend does not support the mode.
- exception pyflocker.ciphers.exc.AlreadyFinalized[source]¶
Bases:
FinalizationError
The context was already destroyed.
- exception pyflocker.ciphers.exc.NotFinalized[source]¶
Bases:
FinalizationError
The context has not been destroyed yet.
- pyflocker.ciphers.exc.NotYetFinalized¶
alias of
NotFinalized