Use OpenSSL EVP API for AES