pub fn encrypt_with_given_nonce(
    secret_key: SecretKey,
    public_key: PublicKey,
    plaintext: Vec<u8>,
    nonce: [u8; 24]
) -> Result<Vec<u8>, Error>
Expand description

Encrypt a given message using crypto_box using a given nonce rather than generating one