Add possibility to use libcrypto for encryption