Added client side support for crypto engine encryption and decryption.
Client authentication and server certificate validation are still missing.