/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_attr_build.c | 157 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()
|
D | wps_enrollee.c | 123 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 …]
|
D | wps_i.h | 51 u8 nonce_e[WPS_NONCE_LEN]; 52 u8 nonce_r[WPS_NONCE_LEN];
|
D | wps_attr_parse.c | 42 if (len != WPS_NONCE_LEN) { in wps_set_attr() 50 if (len != WPS_NONCE_LEN) { in wps_set_attr()
|
D | wps_common.c | 106 len[0] = WPS_NONCE_LEN; in wps_derive_keys() 110 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
|
D | wps_upnp.c | 652 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()
|
D | wps_registrar.c | 1216 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 …]
|
D | wps_defs.h | 24 #define WPS_NONCE_LEN 16 macro
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_enrollee.c | 119 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 …]
|
D | wps_attr_build.c | 242 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()
|
D | wps_i.h | 53 u8 nonce_e[WPS_NONCE_LEN]; 54 u8 nonce_r[WPS_NONCE_LEN];
|
D | wps_upnp.c | 610 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()
|
D | wps_attr_parse.c | 154 if (len != WPS_NONCE_LEN) { in wps_set_attr() 162 if (len != WPS_NONCE_LEN) { in wps_set_attr()
|
D | wps_defs.h | 32 #define WPS_NONCE_LEN 16 macro
|
D | wps_registrar.c | 1734 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 …]
|
D | wps_common.c | 104 len[0] = WPS_NONCE_LEN; in wps_derive_keys() 108 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
|