Expand description
Helper functions for decryption.
The actual decryption is done in the crate::pgp module.
Functionsยง
- check_
symmetric_ ๐encryption - Returns Ok(()) if we want to try symmetrically decrypting the message, and Err with a reason if symmetric decryption should not be tried.
- decrypt ๐
- Tries to decrypt the message,
returning a tuple of
(decrypted message, fingerprint). - decrypt_
session_ ๐key_ symmetrically - get_
attachment_ ๐mime - Returns a reference to the encrypted payload of a message turned into attachment.
- get_
autocrypt_ ๐mime - Returns a reference to the encrypted payload of a valid PGP/MIME message.
- get_
encrypted_ mime - Returns a reference to the encrypted payload of a message.
- get_
encrypted_ pgp_ message_ boxed - Turns a [
ParsedMail] into [pgp::composed::Message]. [pgp::composed::Message] is huge (over 4kb), so, it is put on the heap usingBox. - get_
mixed_ ๐up_ mime - Returns a reference to the encrypted payload of a โMixed Upโ message.
- try_
decrypt_ ๐with_ auth_ token - try_
decrypt_ ๐with_ bobstate - try_
decrypt_ ๐with_ broadcast_ secret - try_
decrypt_ ๐with_ broadcast_ secret_ inner - validate_
detached_ ๐signature - Validates signatures of Multipart/Signed message part, as defined in RFC 1847.