Lines Matching refs:r_nonce

239 					   const u8 *r_nonce, const u8 *i_nonce,  in dpp_auth_build_resp()  argument
311 if (r_nonce) { in dpp_auth_build_resp()
317 os_memcpy(pos, r_nonce, nonce_len); in dpp_auth_build_resp()
427 const u8 *r_pubkey_hash, *i_pubkey_hash, *r_nonce, *i_nonce; in dpp_auth_build_resp_ok() local
441 os_memcpy(auth->r_nonce, dpp_nonce_override, nonce_len); in dpp_auth_build_resp_ok()
444 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
452 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
457 wpa_hexdump(MSG_DEBUG, "DPP: R-nonce", auth->r_nonce, nonce_len); in dpp_auth_build_resp_ok()
531 r_nonce = auth->r_nonce; in dpp_auth_build_resp_ok()
579 r_nonce = NULL; in dpp_auth_build_resp_ok()
588 r_nonce, i_nonce, in dpp_auth_build_resp_ok()
962 u8 r_nonce[4 + DPP_MAX_NONCE_LEN]; in dpp_auth_build_conf() local
1100 WPA_PUT_LE16(r_nonce, DPP_ATTR_R_NONCE); in dpp_auth_build_conf()
1101 WPA_PUT_LE16(&r_nonce[2], auth->curve->nonce_len); in dpp_auth_build_conf()
1102 os_memcpy(r_nonce + 4, auth->r_nonce, auth->curve->nonce_len); in dpp_auth_build_conf()
1105 r_nonce, r_nonce_len, in dpp_auth_build_conf()
1413 *r_nonce, *i_nonce, *r_capab, *wrapped2, *r_auth; in dpp_auth_resp_rx() local
1606 r_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_R_NONCE, in dpp_auth_resp_rx()
1608 if (!r_nonce || r_nonce_len != auth->curve->nonce_len) { in dpp_auth_resp_rx()
1612 wpa_hexdump(MSG_DEBUG, "DPP: R-nonce", r_nonce, r_nonce_len); in dpp_auth_resp_rx()
1613 os_memcpy(auth->r_nonce, r_nonce, r_nonce_len); in dpp_auth_resp_rx()
1754 const u8 *r_nonce; in dpp_auth_conf_rx_failure() local
1788 r_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_R_NONCE, in dpp_auth_conf_rx_failure()
1790 if (!r_nonce || r_nonce_len != auth->curve->nonce_len) { in dpp_auth_conf_rx_failure()
1794 if (os_memcmp(r_nonce, auth->r_nonce, r_nonce_len) != 0) { in dpp_auth_conf_rx_failure()
1796 r_nonce, r_nonce_len); in dpp_auth_conf_rx_failure()
1798 auth->r_nonce, r_nonce_len); in dpp_auth_conf_rx_failure()