pub fn crypto_box_detached(
ciphertext: &mut [u8],
mac: &mut Mac,
message: &[u8],
nonce: &Nonce,
recipient_public_key: &PublicKey,
sender_secret_key: &SecretKey,
) -> Result<(), Error>Expand description
Detached variant of crypto_box_easy.
Compatible with libsodium’s crypto_box_detached.
§Errors
Returns an error if message is too long, recipient_public_key is
unacceptable, or ciphertext is shorter than message.