Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt<'s>(
    ctx: &Context,
    ciphertext: impl Into<MessageSource<'s>>,
) -> Result<Vec<u8>>
Expand description

Decrypt ciphertext (anything message-shaped: a byte slice or a caller-built Input) and return the plaintext bytes. Requires that the keyring contain the matching secret key (unlocked) or that a password provider returns the right password.