Lines Matching refs:wrap_alg
829 X509_ALGOR *talg, *wrap_alg = NULL; in ecdh_cms_encrypt() local
916 wrap_alg = X509_ALGOR_new(); in ecdh_cms_encrypt()
917 if (wrap_alg == NULL) in ecdh_cms_encrypt()
919 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in ecdh_cms_encrypt()
920 wrap_alg->parameter = ASN1_TYPE_new(); in ecdh_cms_encrypt()
921 if (wrap_alg->parameter == NULL) in ecdh_cms_encrypt()
923 if (EVP_CIPHER_param_to_asn1(ctx, wrap_alg->parameter) <= 0) in ecdh_cms_encrypt()
925 if (ASN1_TYPE_get(wrap_alg->parameter) == NID_undef) { in ecdh_cms_encrypt()
926 ASN1_TYPE_free(wrap_alg->parameter); in ecdh_cms_encrypt()
927 wrap_alg->parameter = NULL; in ecdh_cms_encrypt()
933 penclen = CMS_SharedInfo_encode(&penc, wrap_alg, ukm, keylen); in ecdh_cms_encrypt()
946 penclen = i2d_X509_ALGOR(wrap_alg, &penc); in ecdh_cms_encrypt()
960 X509_ALGOR_free(wrap_alg); in ecdh_cms_encrypt()