NaCl box decrypt: authenticated decryption where both sender and recipient are known.
Input format: nonce(24) || ciphertext.
nonce(24) || ciphertext
The packed message produced by boxEncrypt.
The sender's 32-byte Curve25519 public key.
The recipient's 32-byte Curve25519 secret key.
The decrypted plaintext bytes.
If the packed data is too short, or decryption/authentication fails.
NaCl box decrypt: authenticated decryption where both sender and recipient are known.
Input format:
nonce(24) || ciphertext.