pub fn box_seal(
    nonce: &[u8; 15],
    plaintext: Vec<u8>,
    additional_data: Vec<u8>,
    peers_public_key: &PublicKey,
    private_key: &StaticSecret
) -> Result<Vec<u8>>
Expand description

Boxes (“seals”) the provided additional data and plaintext via Deoxys-II-256-128 using a symmetric key derived from the provided X25519 public and private keys. The nonce should be NONCE_SIZE bytes long and unique for all time for a given public and private key tuple.