Function deltachat::pgp::pk_decrypt
source ยท pub fn pk_decrypt(
ctext: Vec<u8>,
private_keys_for_decryption: &[SignedSecretKey],
public_keys_for_validation: &[SignedPublicKey],
) -> Result<(Vec<u8>, HashSet<Fingerprint>)>
Expand description
Decrypts the message with keys from the private key keyring.
Receiver private keys are provided in
private_keys_for_decryption
.
Returns decrypted message and fingerprints
of all keys from the public_keys_for_validation
keyring that
have valid signatures there.