Encrypt a message using a shared secret key
the input data
the length of input in bytes
the key used to encrypt the message
a ref to a random number generator, such as AutoSeededRNG
See Implementation
Encrypt a message using a shared secret key