Added the encryption implementation from the reference implementation to make sure it's compatible with the hardware.
Removed openssl.