Home
last modified time | relevance | path

Searched refs:bnctx (Results 1 – 5 of 5) sorted by relevance

/external/openssh/
Dbufec.c55 BN_CTX *bnctx; in buffer_put_ecpoint_ret() local
59 if ((bnctx = BN_CTX_new()) == NULL) in buffer_put_ecpoint_ret()
62 NULL, 0, bnctx); in buffer_put_ecpoint_ret()
71 buf, len, bnctx) != len) { in buffer_put_ecpoint_ret()
83 BN_CTX_free(bnctx); in buffer_put_ecpoint_ret()
101 BN_CTX *bnctx; in buffer_get_ecpoint_ret() local
108 if ((bnctx = BN_CTX_new()) == NULL) in buffer_get_ecpoint_ret()
125 if (EC_POINT_oct2point(curve, point, buf, len, bnctx) != 1) { in buffer_get_ecpoint_ret()
132 BN_CTX_free(bnctx); in buffer_get_ecpoint_ret()
Dkey.c265 BN_CTX *bnctx; in key_equal_public() local
295 if ((bnctx = BN_CTX_new()) == NULL) in key_equal_public()
298 EC_KEY_get0_group(b->ecdsa), bnctx) != 0 || in key_equal_public()
301 EC_KEY_get0_public_key(b->ecdsa), bnctx) != 0) { in key_equal_public()
302 BN_CTX_free(bnctx); in key_equal_public()
305 BN_CTX_free(bnctx); in key_equal_public()
1076 BN_CTX *bnctx; in key_ecdsa_key_to_nid() local
1089 if ((bnctx = BN_CTX_new()) == NULL) in key_ecdsa_key_to_nid()
1095 if (EC_GROUP_cmp(g, eg, bnctx) == 0) in key_ecdsa_key_to_nid()
1099 BN_CTX_free(bnctx); in key_ecdsa_key_to_nid()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c46 BN_CTX *bnctx; member
102 if ((data->bnctx = BN_CTX_new()) == NULL) { in eap_pwd_init()
110 BN_CTX_free(data->bnctx); in eap_pwd_init()
120 BN_CTX_free(data->bnctx); in eap_pwd_init()
146 BN_CTX_free(data->bnctx); in eap_pwd_deinit()
294 data->bnctx); in eap_pwd_perform_commit_exchange()
297 data->grp->pwe, mask, data->bnctx)) { in eap_pwd_perform_commit_exchange()
304 if (!EC_POINT_invert(data->grp->group, data->my_element, data->bnctx)) in eap_pwd_perform_commit_exchange()
338 data->bnctx)) { in eap_pwd_perform_commit_exchange()
361 data->server_scalar, data->bnctx)) || in eap_pwd_perform_commit_exchange()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c49 BN_CTX *bnctx; member
115 data->bnctx = BN_CTX_new(); in eap_pwd_init()
116 if (data->bnctx == NULL) { in eap_pwd_init()
140 BN_CTX_free(data->bnctx); in eap_pwd_reset()
213 data->bnctx); in eap_pwd_build_commit_req()
216 data->grp->pwe, mask, data->bnctx)) { in eap_pwd_build_commit_req()
223 if (!EC_POINT_invert(data->grp->group, data->my_element, data->bnctx)) in eap_pwd_build_commit_req()
239 data->bnctx)) { in eap_pwd_build_commit_req()
335 data->bnctx)) { in eap_pwd_build_confirm_req()
360 data->bnctx)) { in eap_pwd_build_confirm_req()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c284 int compute_keys(EAP_PWD_group *grp, BN_CTX *bnctx, BIGNUM *k, in compute_keys() argument