pub fn crypto_box_easy_afternm(
ciphertext: &mut [u8],
message: &[u8],
nonce: &Nonce,
key: &Key,
) -> Result<(), Error>Expand description
Encrypts a message using a key computed by crypto_box_beforenm.
The result is placed into ciphertext, which must be exactly
CRYPTO_BOX_MACBYTES bytes longer than message.
Compatible with libsodium’s crypto_box_easy_afternm.
§Errors
Returns an error if message is too long or ciphertext has the wrong
length.