Encrypt the content of buffer in place.
the content to be encrypted in place
if the encryption fails
See Implementation
Encrypt the content of buffer in place.