Function deltachat::pgp::pk_encrypt

source ·
pub async fn pk_encrypt(
    plain: &[u8],
    public_keys_for_encryption: Vec<SignedPublicKey>,
    private_key_for_signing: Option<SignedSecretKey>
) -> Result<String>
Expand description

Encrypts plain text using public_keys_for_encryption and signs it using private_key_for_signing.