Searched refs:ec_params (Results 1 – 2 of 2) sorted by relevance
1961 EC_KEY *ec_params = NULL; in crypto_ecdh_init() local1972 ec_params = EC_KEY_new_by_curve_name(ecdh->ec->nid); in crypto_ecdh_init()1973 if (!ec_params) { in crypto_ecdh_init()1978 EC_KEY_set_asn1_flag(ec_params, OPENSSL_EC_NAMED_CURVE); in crypto_ecdh_init()1980 if (!params || EVP_PKEY_set1_EC_KEY(params, ec_params) != 1) { in crypto_ecdh_init()2004 EC_KEY_free(ec_params); in crypto_ecdh_init()
526 EC_KEY *ec_params = NULL; in dpp_gen_keypair() local538 ec_params = EC_KEY_new_by_curve_name(nid); in dpp_gen_keypair()539 if (!ec_params) { in dpp_gen_keypair()544 EC_KEY_set_asn1_flag(ec_params, OPENSSL_EC_NAMED_CURVE); in dpp_gen_keypair()546 if (!params || EVP_PKEY_set1_EC_KEY(params, ec_params) != 1) { in dpp_gen_keypair()565 EC_KEY_free(ec_params); in dpp_gen_keypair()