Home
last modified time | relevance | path

Searched refs:wrap_alg (Results 1 – 2 of 2) sorted by relevance

/third_party/openssl/crypto/ec/
Dec_ameth.c829 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()
[all …]
/third_party/openssl/crypto/dh/
Ddh_ameth.c783 X509_ALGOR *talg, *wrap_alg = NULL; in dh_cms_encrypt() local
858 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 …]