Home
last modified time | relevance | path

Searched refs:WPS_NONCE_LEN (Results 1 – 16 of 16) sorted by relevance

/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dwps_attr_build.c157 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
158 wpabuf_put_data(msg, wps->nonce_e, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
167 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_registrar_nonce()
168 wpabuf_put_data(msg, wps->nonce_r, WPS_NONCE_LEN); in wps_build_registrar_nonce()
Dwps_enrollee.c123 if (os_get_random(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1()
126 wps->nonce_e, WPS_NONCE_LEN); in wps_build_m1()
470 os_memcpy(wps->nonce_r, r_nonce, WPS_NONCE_LEN); in wps_process_registrar_nonce()
472 wps->nonce_r, WPS_NONCE_LEN); in wps_process_registrar_nonce()
485 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce()
992 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_msg()
1076 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_ack()
1083 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_ack()
1128 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_nack()
1132 attr.registrar_nonce, WPS_NONCE_LEN); in wps_process_wsc_nack()
[all …]
Dwps_i.h51 u8 nonce_e[WPS_NONCE_LEN];
52 u8 nonce_r[WPS_NONCE_LEN];
Dwps_attr_parse.c42 if (len != WPS_NONCE_LEN) { in wps_set_attr()
50 if (len != WPS_NONCE_LEN) { in wps_set_attr()
Dwps_common.c106 len[0] = WPS_NONCE_LEN; in wps_derive_keys()
110 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
Dwps_upnp.c652 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
653 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
656 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
657 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
Dwps_registrar.c1216 if (os_get_random(wps->nonce_r, WPS_NONCE_LEN) < 0) in wps_build_m2()
1219 wps->nonce_r, WPS_NONCE_LEN); in wps_build_m2()
1548 os_memcpy(wps->nonce_e, e_nonce, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
1550 wps->nonce_e, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
1563 if (os_memcmp(wps->nonce_r, r_nonce, WPS_NONCE_LEN) != 0) { in wps_process_registrar_nonce()
2188 WPS_NONCE_LEN != 0))) { in wps_process_wsc_msg()
2279 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_ack()
2286 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_ack()
2353 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_nack()
2360 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_nack()
[all …]
Dwps_defs.h24 #define WPS_NONCE_LEN 16 macro
/external/wpa_supplicant_8/src/wps/
Dwps_enrollee.c119 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1()
122 wps->nonce_e, WPS_NONCE_LEN); in wps_build_m1()
480 os_memcpy(wps->nonce_r, r_nonce, WPS_NONCE_LEN); in wps_process_registrar_nonce()
482 wps->nonce_r, WPS_NONCE_LEN); in wps_process_registrar_nonce()
495 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce()
1153 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_msg()
1245 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_ack()
1252 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_ack()
1292 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_nack()
1296 attr.registrar_nonce, WPS_NONCE_LEN); in wps_process_wsc_nack()
[all …]
Dwps_attr_build.c242 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
243 wpabuf_put_data(msg, wps->nonce_e, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
252 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_registrar_nonce()
253 wpabuf_put_data(msg, wps->nonce_r, WPS_NONCE_LEN); in wps_build_registrar_nonce()
Dwps_i.h53 u8 nonce_e[WPS_NONCE_LEN];
54 u8 nonce_r[WPS_NONCE_LEN];
Dwps_upnp.c610 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
611 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
614 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
615 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
Dwps_attr_parse.c154 if (len != WPS_NONCE_LEN) { in wps_set_attr()
162 if (len != WPS_NONCE_LEN) { in wps_set_attr()
Dwps_defs.h32 #define WPS_NONCE_LEN 16 macro
Dwps_registrar.c1734 if (random_get_bytes(wps->nonce_r, WPS_NONCE_LEN) < 0) in wps_build_m2()
1737 wps->nonce_r, WPS_NONCE_LEN); in wps_build_m2()
2027 os_memcpy(wps->nonce_e, e_nonce, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
2029 wps->nonce_e, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
2042 if (os_memcmp(wps->nonce_r, r_nonce, WPS_NONCE_LEN) != 0) { in wps_process_registrar_nonce()
2857 WPS_NONCE_LEN) != 0)) { in wps_process_wsc_msg()
2953 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_ack()
2960 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_ack()
3022 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_nack()
3029 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_nack()
[all …]
Dwps_common.c104 len[0] = WPS_NONCE_LEN; in wps_derive_keys()
108 len[2] = WPS_NONCE_LEN; in wps_derive_keys()