Module: aead
- class doubleratchet.aead.AEAD[source]
Bases:
ABCAuthenticated Encryption with Associated Data (AEAD).
- abstractmethod async static decrypt(ciphertext, key, associated_data)[source]
- Parameters:
- Return type:
- Returns:
The plaintext.
- Raises:
AuthenticationFailedException – if the message could not be authenticated using the associated data.
DecryptionFailedException – if the decryption failed for a different reason (e.g. invalid padding).
- exception doubleratchet.aead.AuthenticationFailedException[source]
Bases:
ExceptionRaised by
AEAD.decrypt()in case of authentication failure.
- exception doubleratchet.aead.DecryptionFailedException[source]
Bases:
ExceptionRaised by
AEAD.decrypt()in case of decryption failure.