Home
last modified time | relevance | path

Searched refs:r_nonce (Results 1 – 14 of 14) sorted by relevance

/external/wpa_supplicant_8/src/common/
Ddpp_reconfig.c241 wpabuf_put_data(clear, auth->r_nonce, auth->curve->nonce_len); in dpp_reconfig_build_resp()
434 if (random_get_bytes(auth->r_nonce, auth->curve->nonce_len)) { in dpp_reconfig_auth_req_rx()
439 auth->r_nonce, auth->curve->nonce_len); in dpp_reconfig_auth_req_rx()
521 wpabuf_put_data(clear, auth->r_nonce, auth->curve->nonce_len); in dpp_reconfig_build_conf()
577 *i_nonce, *r_nonce, *conn_status; in dpp_reconfig_auth_resp_rx() local
714 r_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_R_NONCE, in dpp_reconfig_auth_resp_rx()
716 if (!r_nonce || r_nonce_len != auth->curve->nonce_len) { in dpp_reconfig_auth_resp_rx()
720 wpa_hexdump(MSG_DEBUG, "DPP: R-nonce", r_nonce, r_nonce_len); in dpp_reconfig_auth_resp_rx()
721 os_memcpy(auth->r_nonce, r_nonce, r_nonce_len); in dpp_reconfig_auth_resp_rx()
761 const u8 *trans_id, *version, *wrapped_data, *i_nonce, *r_nonce, in dpp_reconfig_auth_conf_rx() local
[all …]
Ddpp_auth.c239 const u8 *r_nonce, const u8 *i_nonce, in dpp_auth_build_resp() argument
310 if (r_nonce) { in dpp_auth_build_resp()
316 os_memcpy(pos, r_nonce, nonce_len); in dpp_auth_build_resp()
426 const u8 *r_pubkey_hash, *i_pubkey_hash, *r_nonce, *i_nonce; in dpp_auth_build_resp_ok() local
440 os_memcpy(auth->r_nonce, dpp_nonce_override, nonce_len); in dpp_auth_build_resp_ok()
443 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
451 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
456 wpa_hexdump(MSG_DEBUG, "DPP: R-nonce", auth->r_nonce, nonce_len); in dpp_auth_build_resp_ok()
530 r_nonce = auth->r_nonce; in dpp_auth_build_resp_ok()
578 r_nonce = NULL; in dpp_auth_build_resp_ok()
[all …]
Ddpp.h252 u8 r_nonce[DPP_MAX_NONCE_LEN]; member
Ddpp_crypto.c833 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); in dpp_derive_bk_ke()
1445 addr[num_elem] = auth->r_nonce; in dpp_gen_r_auth()
1524 addr[num_elem] = auth->r_nonce; in dpp_gen_i_auth()
/external/wpa_supplicant_8/src/eap_common/
Deap_ikev2_common.c20 const u8 *r_nonce, size_t r_nonce_len, in eap_ikev2_derive_keymat() argument
27 if (keys->SK_d == NULL || i_nonce == NULL || r_nonce == NULL) in eap_ikev2_derive_keymat()
35 os_memcpy(nonces + i_nonce_len, r_nonce, r_nonce_len); in eap_ikev2_derive_keymat()
Deap_ikev2_common.h22 const u8 *r_nonce, size_t r_nonce_len,
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.h30 u8 r_nonce[IKEV2_NONCE_MAX_LEN]; member
Dikev2.c70 os_memcpy(pos, data->r_nonce, data->r_nonce_len); in ikev2_derive_keys()
552 data->r_nonce, data->r_nonce_len, in ikev2_process_auth_secret()
946 wpabuf_put_data(msg, data->r_nonce, data->r_nonce_len); in ikev2_build_nr()
1079 if (random_get_bytes(data->r_nonce, data->r_nonce_len)) in ikev2_build_sa_init()
1081 wpa_hexdump(MSG_DEBUG, "IKEV2: Nr", data->r_nonce, data->r_nonce_len); in ikev2_build_sa_init()
Deap_ikev2.c123 data->ikev2.r_nonce, data->ikev2.r_nonce_len, in eap_ikev2_peer_keymat()
500 os_memcpy(sid + offset, data->ikev2.r_nonce, in eap_ikev2_get_session_id()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.h29 u8 r_nonce[IKEV2_NONCE_MAX_LEN]; member
Dikev2.c74 os_memcpy(pos, data->r_nonce, data->r_nonce_len); in ikev2_derive_keys()
438 os_memcpy(data->r_nonce, nr, nr_len); in ikev2_process_nr()
440 data->r_nonce, data->r_nonce_len); in ikev2_process_nr()
1070 data->r_nonce, data->r_nonce_len, in ikev2_build_auth()
Deap_server_ikev2.c339 data->ikev2.r_nonce, data->ikev2.r_nonce_len, in eap_ikev2_server_keymat()
538 os_memcpy(sid + offset, data->ikev2.r_nonce, in eap_ikev2_get_session_id()
/external/wpa_supplicant_8/src/wps/
Dwps_enrollee.c513 static int wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) in wps_process_registrar_nonce() argument
515 if (r_nonce == NULL) { in wps_process_registrar_nonce()
520 os_memcpy(wps->nonce_r, r_nonce, WPS_NONCE_LEN); in wps_process_registrar_nonce()
Dwps_registrar.c2224 static int wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) in wps_process_registrar_nonce() argument
2226 if (r_nonce == NULL) { in wps_process_registrar_nonce()
2231 if (os_memcmp(wps->nonce_r, r_nonce, WPS_NONCE_LEN) != 0) { in wps_process_registrar_nonce()