Encrypts a message chunk, producing ciphertext.
Buffer to store the ciphertext.
Pointer to store the number of bytes written.
The plaintext message to encrypt.
0 on success, or a negative error code on failure.
See Implementation
Encrypts a message chunk, producing ciphertext.