encrypt_with_shared_secret

Function encrypt_with_shared_secret 

Source
fn encrypt_with_shared_secret<R: CryptoRng + RngCore>(
    shared_key: &[u8; 32],
    plaintext: &[u8],
    rng: &mut R,
) -> Result<Vec<u8>>
Expand description

Encrypt data using ChaCha20-Poly1305 with derived key