EVP_get_cipherbyobj
cipher = EVP_get_cipherbyobj(calg->algorithm);
cipher = (EVP_CIPHER *)EVP_get_cipherbyobj(enc->symmAlg->algorithm);