fedimint_aead

Function decrypt

Source
pub fn decrypt<'c>(
    ciphertext: &'c mut [u8],
    key: &LessSafeKey,
) -> Result<&'c [u8]>
Expand description

Decrypts a ciphertext using key.

Expect nonce in the prefix, like encrypt produces.