Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(cfg: &Pgp, data: &[u8]) -> Result<Opened>
Expand description

Decrypt an armored PGP message. Also accepts clearsigned input, where gpg strips the armor and verifies instead. A bad signature is reported in sig, not as an error; the plaintext is still wanted.