Lines Matching refs:wrap_alg
256 X509_ALGOR *talg, *wrap_alg = NULL; in ecdh_cms_encrypt() local
334 wrap_alg = X509_ALGOR_new(); in ecdh_cms_encrypt()
335 if (wrap_alg == NULL) in ecdh_cms_encrypt()
337 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in ecdh_cms_encrypt()
338 wrap_alg->parameter = ASN1_TYPE_new(); in ecdh_cms_encrypt()
339 if (wrap_alg->parameter == NULL) in ecdh_cms_encrypt()
341 if (EVP_CIPHER_param_to_asn1(ctx, wrap_alg->parameter) <= 0) in ecdh_cms_encrypt()
343 if (ASN1_TYPE_get(wrap_alg->parameter) == NID_undef) { in ecdh_cms_encrypt()
344 ASN1_TYPE_free(wrap_alg->parameter); in ecdh_cms_encrypt()
345 wrap_alg->parameter = NULL; in ecdh_cms_encrypt()
351 penclen = CMS_SharedInfo_encode(&penc, wrap_alg, ukm, keylen); in ecdh_cms_encrypt()
364 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in ecdh_cms_encrypt()
378 X509_ALGOR_free(wrap_alg); in ecdh_cms_encrypt()