Searched refs:wrap_alg (Results 1 – 2 of 2) sorted by relevance
829 X509_ALGOR *talg, *wrap_alg = NULL; in ecdh_cms_encrypt() local916 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()[all …]
783 X509_ALGOR *talg, *wrap_alg = NULL; in dh_cms_encrypt() local858 wrap_alg = X509_ALGOR_new(); in dh_cms_encrypt()859 if (wrap_alg == NULL) in dh_cms_encrypt()861 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in dh_cms_encrypt()862 wrap_alg->parameter = ASN1_TYPE_new(); in dh_cms_encrypt()863 if (wrap_alg->parameter == NULL) in dh_cms_encrypt()865 if (EVP_CIPHER_param_to_asn1(ctx, wrap_alg->parameter) <= 0) in dh_cms_encrypt()867 if (ASN1_TYPE_get(wrap_alg->parameter) == NID_undef) { in dh_cms_encrypt()868 ASN1_TYPE_free(wrap_alg->parameter); in dh_cms_encrypt()869 wrap_alg->parameter = NULL; in dh_cms_encrypt()[all …]