mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
comments/naming: Make sure that I consistently use shared_secret
This commit is contained in:
@@ -10,11 +10,8 @@ use crate::pgp;
|
||||
|
||||
/// Tries to decrypt a message, but only if it is structured as an Autocrypt message.
|
||||
///
|
||||
/// If successful and the message is encrypted, returns a tuple of:
|
||||
///
|
||||
/// - The decrypted and decompressed message
|
||||
/// - If the message was symmetrically encrypted:
|
||||
/// The index in `shared_secrets` of the secret used to decrypt the message.
|
||||
/// If successful and the message is encrypted,
|
||||
/// returns the decrypted and decompressed message.
|
||||
pub fn try_decrypt<'a>(
|
||||
mail: &'a ParsedMail<'a>,
|
||||
private_keyring: &'a [SignedSecretKey],
|
||||
|
||||
Reference in New Issue
Block a user