The crypto_box() function encrypts and authenticates a message 'msg' using the sender's secret key 'sk', the receiver's public key 'pk', and a nonce 'nonce'. The crypto_box() function returns the resulting ciphertext 'c'.
resulting cyphertext
message
nonce
receiver's public key
sender's secret key
success flag and cyphertext in 'c'
See Implementation
The crypto_box() function encrypts and authenticates a message 'msg' using the sender's secret key 'sk', the receiver's public key 'pk', and a nonce 'nonce'. The crypto_box() function returns the resulting ciphertext 'c'.