Skip to main content

encrypt_recipient

Function encrypt_recipient 

Source
pub fn encrypt_recipient(
    plaintext: &[u8],
    recipient_public_key: &[u8; 32],
) -> Result<RecipientEncryptResult>
Expand description

Encrypt data using recipient-based encryption (X25519 + HKDF + AES-256-GCM)

Returns: (mode_byte, ephemeral_public_key, nonce, ciphertext_with_tag)