Function dup_crypto::private_message::decrypt_private_message [−][src]
pub fn decrypt_private_message<'m>(
additionally_authenticated_data: &[u8],
chacha_rounds: ChaChaRounds,
encrypted_message: &'m mut [u8],
receiver_key_pair: &Ed25519KeyPair
) -> Result<DecryptedMessage<'m>, PrivateMessageError>
Expand description
Decrypt private message.
Return a reference to decrypted bytes and an optional signature.
If the authentication method chosen by the sender is Signature
,
then the signature is necessarily returned. The signature is returned
to allow subsequent publication of proof that this particular message was sent by the sender.