pub fn open(keypair: &KeyPair, envelope: &Envelope) -> Result<Vec<u8>>Expand description
Decrypt an Envelope with keypair.
§Errors
Returns Error::DecryptionFailed for any cryptographic failure —
wrong recipient, tampered header, tampered ciphertext — with no further
detail, by design.