Encrypt or decrypt a message
the plaintext / ciphertext
the length of buf in bytes
See Implementation
Encrypt or decrypt a message