Encrypt the content of buffer in place.
the content to be encrypted in place
the initialisation vector to use
if setting the init vector or the encryption fails
See Implementation
Encrypt the content of buffer in place.