Fix usage of custom EVP_CIPHER objects