encryptSecretBoxInPlace

Wrapper around crypto_secretbox_easy that encrypts in place. buffer is changed in place from the message to the cipher. Note that it will be reallocated to be large enough to include the MAC, which may cause the array to be copied.

void
encryptSecretBoxInPlace
(
ref ubyte[] buffer
,
in Nonce nonce
,
in SecretKey key
)

Meta