Home
last modified time | relevance | path

Searched refs:e_nonce (Results 1 – 8 of 8) sorted by relevance

/hostap-3.6.0/tests/hwsim/
Dtest_ap_wps.py6597 def wsc_dh_kdf(peer_pk, own_private, mac_addr, e_nonce, r_nonce): argument
6611 m = hmac.new(dhkey, e_nonce + mac_addr + r_nonce, hashlib.sha256)
6638 def build_m1(eap_id, uuid_e, mac_addr, e_nonce, e_pk, argument
6644 attrs += build_wsc_attr(ATTR_ENROLLEE_NONCE, e_nonce)
6665 def build_m2(authkey, m1, eap_id, e_nonce, r_nonce, uuid_r, r_pk, argument
6669 if e_nonce:
6670 attrs += build_wsc_attr(ATTR_ENROLLEE_NONCE, e_nonce)
6695 def build_m2d(m1, eap_id, e_nonce, r_nonce, uuid_r, dev_pw_id=None, eap_code=1): argument
6698 attrs += build_wsc_attr(ATTR_ENROLLEE_NONCE, e_nonce)
6720 def build_ack(eap_id, e_nonce, r_nonce, msg_type=WPS_WSC_ACK, eap_code=1): argument
[all …]
/hostap-3.6.0/src/common/
Ddpp_reconfig.c389 wpabuf_put_data(msg, auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_build_resp()
607 wpabuf_put_data(clear, auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_build_conf()
668 *c_nonce, *e_nonce, *conn_status; in dpp_reconfig_auth_resp_rx() local
728 e_nonce = dpp_get_attr(attr_start, attr_len, in dpp_reconfig_auth_resp_rx()
730 if (!e_nonce || e_nonce_len != auth->curve->nonce_len) { in dpp_reconfig_auth_resp_rx()
734 wpa_hexdump(MSG_DEBUG, "DPP: E-nonce", e_nonce, e_nonce_len); in dpp_reconfig_auth_resp_rx()
735 os_memcpy(auth->e_nonce, e_nonce, e_nonce_len); in dpp_reconfig_auth_resp_rx()
852 const u8 *trans_id, *version, *wrapped_data, *c_nonce, *e_nonce, in dpp_reconfig_auth_conf_rx() local
943 e_nonce = dpp_get_attr(unwrapped, unwrapped_len, in dpp_reconfig_auth_conf_rx()
945 if (!e_nonce || e_nonce_len != auth->curve->nonce_len || in dpp_reconfig_auth_conf_rx()
[all …]
Ddpp.c671 if (random_get_bytes(auth->e_nonce, nonce_len)) { in dpp_build_conf_req_attr()
675 wpa_hexdump(MSG_DEBUG, "DPP: E-nonce", auth->e_nonce, nonce_len); in dpp_build_conf_req_attr()
712 wpabuf_put_data(clear, auth->e_nonce, nonce_len - 1); in dpp_build_conf_req_attr()
724 wpabuf_put_data(clear, auth->e_nonce, nonce_len); in dpp_build_conf_req_attr()
1804 dpp_build_conf_resp(struct dpp_authentication *auth, const u8 *e_nonce, in dpp_build_conf_resp() argument
1908 wpabuf_put_data(clear, e_nonce, e_nonce_len - 1); in dpp_build_conf_resp()
1909 wpabuf_put_u8(clear, e_nonce[e_nonce_len - 1] ^ 0x01); in dpp_build_conf_resp()
1921 wpabuf_put_data(clear, e_nonce, e_nonce_len); in dpp_build_conf_resp()
2051 const u8 *wrapped_data, *e_nonce, *config_attr; in dpp_conf_req_rx() local
2105 e_nonce = dpp_get_attr(unwrapped, unwrapped_len, in dpp_conf_req_rx()
[all …]
Ddpp.h277 u8 e_nonce[DPP_MAX_NONCE_LEN]; member
590 dpp_build_conf_resp(struct dpp_authentication *auth, const u8 *e_nonce,
Ddpp_crypto.c1698 if (random_get_bytes(auth->e_nonce, auth->curve->nonce_len)) { in dpp_reconfig_derive_ke_responder()
1703 auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_derive_ke_responder()
1729 os_memcpy(&nonces[curve->nonce_len], auth->e_nonce, curve->nonce_len); in dpp_reconfig_derive_ke_responder()
1820 os_memcpy(&nonces[curve->nonce_len], auth->e_nonce, curve->nonce_len); in dpp_reconfig_derive_ke_initiator()
2413 addr[0] = auth->e_nonce; in dpp_derive_auth_i()
/hostap-3.6.0/src/wps/
Dwps_enrollee.c528 static int wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) in wps_process_enrollee_nonce() argument
530 if (e_nonce == NULL) { in wps_process_enrollee_nonce()
535 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce()
Dwps_registrar.c2199 static int wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) in wps_process_enrollee_nonce() argument
2201 if (e_nonce == NULL) { in wps_process_enrollee_nonce()
2206 os_memcpy(wps->nonce_e, e_nonce, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
/hostap-3.6.0/wpa_supplicant/
Ddpp_supplicant.c3862 resp = dpp_build_conf_resp(auth, auth->e_nonce, auth->curve->nonce_len, in wpas_dpp_build_conf_resp()