Lines Matching refs:nonce_len
892 size_t nonce_len; in dpp_derive_ke() local
910 nonce_len = auth->curve->nonce_len; in dpp_derive_ke()
911 os_memcpy(nonces, auth->i_nonce, nonce_len); in dpp_derive_ke()
912 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); in dpp_derive_ke()
929 res = dpp_hmac_vector(hash_len, nonces, 2 * nonce_len, in dpp_derive_ke()
984 size_t nonce_len, in dpp_auth_build_req() argument
1056 WPA_PUT_LE16(pos, nonce_len - 1); in dpp_auth_build_req()
1058 os_memcpy(pos, auth->i_nonce, nonce_len - 1); in dpp_auth_build_req()
1059 pos += nonce_len - 1; in dpp_auth_build_req()
1067 WPA_PUT_LE16(pos, nonce_len); in dpp_auth_build_req()
1069 os_memcpy(pos, auth->i_nonce, nonce_len); in dpp_auth_build_req()
1070 pos += nonce_len; in dpp_auth_build_req()
1140 size_t nonce_len, in dpp_auth_build_resp() argument
1206 WPA_PUT_LE16(pos, nonce_len); in dpp_auth_build_resp()
1208 os_memcpy(pos, r_nonce, nonce_len); in dpp_auth_build_resp()
1209 pos += nonce_len; in dpp_auth_build_resp()
1216 WPA_PUT_LE16(pos, nonce_len); in dpp_auth_build_resp()
1218 os_memcpy(pos, i_nonce, nonce_len); in dpp_auth_build_resp()
1222 pos[nonce_len / 2] ^= 0x01; in dpp_auth_build_resp()
1225 pos += nonce_len; in dpp_auth_build_resp()
1522 size_t nonce_len; in dpp_auth_init() local
1549 nonce_len = dpp_nonce_override_len; in dpp_auth_init()
1550 os_memcpy(auth->i_nonce, dpp_nonce_override, nonce_len); in dpp_auth_init()
1552 nonce_len = auth->curve->nonce_len; in dpp_auth_init()
1553 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init()
1560 nonce_len = auth->curve->nonce_len; in dpp_auth_init()
1561 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init()
1566 wpa_hexdump(MSG_DEBUG, "DPP: I-nonce", auth->i_nonce, nonce_len); in dpp_auth_init()
1639 auth->req_msg = dpp_auth_build_req(auth, pi, nonce_len, r_pubkey_hash, in dpp_auth_init()
1657 size_t nonce_len; in dpp_build_conf_req_attr() local
1665 nonce_len = auth->curve->nonce_len; in dpp_build_conf_req_attr()
1666 if (random_get_bytes(auth->e_nonce, nonce_len)) { in dpp_build_conf_req_attr()
1670 wpa_hexdump(MSG_DEBUG, "DPP: E-nonce", auth->e_nonce, nonce_len); in dpp_build_conf_req_attr()
1675 clear_len = 4 + nonce_len + 4 + json_len; in dpp_build_conf_req_attr()
1694 wpabuf_put_le16(clear, nonce_len - 1); in dpp_build_conf_req_attr()
1695 wpabuf_put_data(clear, auth->e_nonce, nonce_len - 1); in dpp_build_conf_req_attr()
1706 wpabuf_put_le16(clear, nonce_len); in dpp_build_conf_req_attr()
1707 wpabuf_put_data(clear, auth->e_nonce, nonce_len); in dpp_build_conf_req_attr()
1891 size_t nonce_len; in dpp_gen_r_auth() local
1896 nonce_len = auth->curve->nonce_len; in dpp_gen_r_auth()
1919 len[num_elem] = nonce_len; in dpp_gen_r_auth()
1923 len[num_elem] = nonce_len; in dpp_gen_r_auth()
1969 size_t nonce_len; in dpp_gen_i_auth() local
1974 nonce_len = auth->curve->nonce_len; in dpp_gen_i_auth()
2001 len[num_elem] = nonce_len; in dpp_gen_i_auth()
2005 len[num_elem] = nonce_len; in dpp_gen_i_auth()
2145 size_t nonce_len; in dpp_auth_build_resp_ok() local
2165 nonce_len = dpp_nonce_override_len; in dpp_auth_build_resp_ok()
2166 os_memcpy(auth->r_nonce, dpp_nonce_override, nonce_len); in dpp_auth_build_resp_ok()
2168 nonce_len = auth->curve->nonce_len; in dpp_auth_build_resp_ok()
2169 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
2176 nonce_len = auth->curve->nonce_len; in dpp_auth_build_resp_ok()
2177 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
2182 wpa_hexdump(MSG_DEBUG, "DPP: R-nonce", auth->r_nonce, nonce_len); in dpp_auth_build_resp_ok()
2311 msg = dpp_auth_build_resp(auth, status, pr, nonce_len, in dpp_auth_build_resp_ok()
2381 msg = dpp_auth_build_resp(auth, status, NULL, auth->curve->nonce_len, in dpp_auth_build_resp_status()
2537 if (!i_nonce || i_nonce_len != auth->curve->nonce_len) { in dpp_auth_req_rx()
2689 r_nonce_len = 4 + auth->curve->nonce_len; in dpp_auth_build_conf()
2813 WPA_PUT_LE16(&r_nonce[2], auth->curve->nonce_len); in dpp_auth_build_conf()
2814 os_memcpy(r_nonce + 4, auth->r_nonce, auth->curve->nonce_len); in dpp_auth_build_conf()
2901 if (!i_nonce || i_nonce_len != auth->curve->nonce_len) { in dpp_auth_resp_rx_status()
3124 if (!r_nonce || r_nonce_len != auth->curve->nonce_len) { in dpp_auth_resp_rx()
3133 if (!i_nonce || i_nonce_len != auth->curve->nonce_len) { in dpp_auth_resp_rx()
3306 if (!r_nonce || r_nonce_len != auth->curve->nonce_len) { in dpp_auth_conf_rx_failure()
4466 if (!e_nonce || e_nonce_len != auth->curve->nonce_len) { in dpp_conf_req_rx()
5450 if (!e_nonce || e_nonce_len != auth->curve->nonce_len) { in dpp_conf_resp_rx()