/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_common.c | 106 len[0] = WPS_NONCE_LEN; in wps_derive_keys() 110 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
|
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_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() 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 …]
|
D | wps_attr_build.c | 234 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()
|
D | wps_i.h | 50 u8 nonce_e[WPS_NONCE_LEN]; 51 u8 nonce_r[WPS_NONCE_LEN];
|
D | wps_upnp.c | 608 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()
|
D | wps_attr_parse.c | 153 if (len != WPS_NONCE_LEN) { in wps_set_attr() 161 if (len != WPS_NONCE_LEN) { in wps_set_attr()
|
D | wps_registrar.c | 1655 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 …]
|
D | wps_defs.h | 32 #define WPS_NONCE_LEN 16 macro
|
D | wps_common.c | 104 len[0] = WPS_NONCE_LEN; in wps_derive_keys() 108 len[2] = WPS_NONCE_LEN; in wps_derive_keys()
|