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_common.c106 len[0] = WPS_NONCE_LEN; in wps_derive_keys()
110 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
Dwps_attr_parse.c42 if (len != WPS_NONCE_LEN) { in wps_set_attr()
50 if (len != WPS_NONCE_LEN) { in wps_set_attr()
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()
479 os_memcpy(wps->nonce_r, r_nonce, WPS_NONCE_LEN); in wps_process_registrar_nonce()
481 wps->nonce_r, WPS_NONCE_LEN); in wps_process_registrar_nonce()
494 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce()
1152 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_msg()
1244 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_ack()
1251 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_ack()
1291 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_nack()
1295 attr.registrar_nonce, WPS_NONCE_LEN); in wps_process_wsc_nack()
[all …]
Dwps_attr_build.c234 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
235 wpabuf_put_data(msg, wps->nonce_e, WPS_NONCE_LEN); in wps_build_enrollee_nonce()
244 wpabuf_put_be16(msg, WPS_NONCE_LEN); in wps_build_registrar_nonce()
245 wpabuf_put_data(msg, wps->nonce_r, WPS_NONCE_LEN); in wps_build_registrar_nonce()
Dwps_i.h50 u8 nonce_e[WPS_NONCE_LEN];
51 u8 nonce_r[WPS_NONCE_LEN];
Dwps_upnp.c608 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
609 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
612 wpabuf_put_be16(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
613 wpabuf_put(msg, WPS_NONCE_LEN); in build_fake_wsc_ack()
Dwps_attr_parse.c153 if (len != WPS_NONCE_LEN) { in wps_set_attr()
161 if (len != WPS_NONCE_LEN) { in wps_set_attr()
Dwps_registrar.c1655 if (random_get_bytes(wps->nonce_r, WPS_NONCE_LEN) < 0) in wps_build_m2()
1658 wps->nonce_r, WPS_NONCE_LEN); in wps_build_m2()
1948 os_memcpy(wps->nonce_e, e_nonce, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
1950 wps->nonce_e, WPS_NONCE_LEN); in wps_process_enrollee_nonce()
1963 if (os_memcmp(wps->nonce_r, r_nonce, WPS_NONCE_LEN) != 0) { in wps_process_registrar_nonce()
2752 WPS_NONCE_LEN != 0))) { in wps_process_wsc_msg()
2848 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_ack()
2855 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_ack()
2917 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN != 0)) in wps_process_wsc_nack()
2924 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN != 0)) { in wps_process_wsc_nack()
[all …]
Dwps_defs.h32 #define WPS_NONCE_LEN 16 macro
Dwps_common.c104 len[0] = WPS_NONCE_LEN; in wps_derive_keys()
108 len[2] = WPS_NONCE_LEN; in wps_derive_keys()