Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    recipient: &PublicKey,
    plaintext: &[u8],
) -> Result<EncryptedBlob, EciesError>
Expand description

Encrypt plaintext to recipient using ECIES-P256 + AES-256-GCM.