Module decrypt

Module decrypt 

Source
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 using Box.
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.