Lines Matching refs:attr_len
1539 size_t len[2], siv_len, attr_len; in dpp_auth_build_req() local
1543 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
1546 attr_len += 4 + 2; in dpp_auth_build_req()
1548 attr_len += 5; in dpp_auth_build_req()
1552 attr_len += 5; in dpp_auth_build_req()
1554 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_REQ, attr_len); in dpp_auth_build_req()
1716 size_t len[2], siv_len, attr_len; in dpp_auth_build_resp() local
1723 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
1726 attr_len += 5; in dpp_auth_build_resp()
1730 attr_len += 5; in dpp_auth_build_resp()
1732 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_RESP, attr_len); in dpp_auth_build_resp()
2239 size_t attr_len; in dpp_build_conf_req_attr() local
2255 attr_len = 4 + clear_len + AES_BLOCK_SIZE; in dpp_build_conf_req_attr()
2258 attr_len += 5; in dpp_build_conf_req_attr()
2260 msg = wpabuf_alloc(attr_len); in dpp_build_conf_req_attr()
2958 size_t attr_len) in dpp_auth_req_rx() argument
2985 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_auth_req_rx()
2994 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_req_rx()
3007 version = dpp_get_attr(attr_start, attr_len, DPP_ATTR_PROTOCOL_VERSION, in dpp_auth_req_rx()
3021 channel = dpp_get_attr(attr_start, attr_len, DPP_ATTR_CHANNEL, in dpp_auth_req_rx()
3049 i_proto = dpp_get_attr(attr_start, attr_len, DPP_ATTR_I_PROTOCOL_KEY, in dpp_auth_req_rx()
3095 len[1] = attr_len; in dpp_auth_req_rx()
3190 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_req_rx()
3264 size_t len[2], attr_len; in dpp_auth_build_conf() local
3278 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_conf()
3282 attr_len += 5; in dpp_auth_build_conf()
3284 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_CONF, attr_len); in dpp_auth_build_conf()
3435 const u8 *attr_start, size_t attr_len, in dpp_auth_resp_rx_status() argument
3463 len[1] = attr_len; in dpp_auth_resp_rx_status()
3533 const u8 *attr_start, size_t attr_len) in dpp_auth_resp_rx() argument
3569 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_auth_resp_rx()
3579 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_resp_rx()
3581 r_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_resp_rx()
3601 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_resp_rx()
3629 version = dpp_get_attr(attr_start, attr_len, DPP_ATTR_PROTOCOL_VERSION, in dpp_auth_resp_rx()
3643 status = dpp_get_attr(attr_start, attr_len, DPP_ATTR_STATUS, in dpp_auth_resp_rx()
3654 attr_len, wrapped_data, in dpp_auth_resp_rx()
3668 r_proto = dpp_get_attr(attr_start, attr_len, DPP_ATTR_R_PROTOCOL_KEY, in dpp_auth_resp_rx()
3715 len[1] = attr_len; in dpp_auth_resp_rx()
3878 const u8 *attr_start, size_t attr_len, in dpp_auth_conf_rx_failure() argument
3896 len[1] = attr_len; in dpp_auth_conf_rx_failure()
3948 const u8 *attr_start, size_t attr_len) in dpp_auth_conf_rx() argument
3974 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_auth_conf_rx()
3984 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_conf_rx()
3986 r_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_conf_rx()
4006 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_conf_rx()
4033 status = dpp_get_attr(attr_start, attr_len, DPP_ATTR_STATUS, in dpp_auth_conf_rx()
4044 attr_len, wrapped_data, in dpp_auth_conf_rx()
4055 len[1] = attr_len; in dpp_auth_conf_rx()
4756 size_t clear_len, attr_len; in dpp_build_conf_resp() local
4776 attr_len = 4 + 1 + 4 + clear_len + AES_BLOCK_SIZE; in dpp_build_conf_resp()
4779 attr_len += 5; in dpp_build_conf_resp()
4781 msg = wpabuf_alloc(attr_len); in dpp_build_conf_resp()
4882 size_t attr_len) in dpp_conf_req_rx() argument
4900 if (dpp_check_attrs(attr_start, attr_len) < 0) { in dpp_conf_req_rx()
4905 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_conf_req_rx()
5921 const u8 *attr_start, size_t attr_len) in dpp_conf_result_rx() argument
5931 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_conf_result_rx()
5941 attr_len = wrapped_data - 4 - attr_start; in dpp_conf_result_rx()
5946 len[1] = attr_len; in dpp_conf_result_rx()
6006 size_t nonce_len, clear_len, attr_len; in dpp_build_conf_result() local
6013 attr_len = 4 + clear_len + AES_BLOCK_SIZE; in dpp_build_conf_result()
6015 msg = dpp_alloc_msg(DPP_PA_CONFIGURATION_RESULT, attr_len); in dpp_build_conf_result()
6815 size_t attr_len; in dpp_pkex_build_exchange_req() local
6866 attr_len = 4 + 2; in dpp_pkex_build_exchange_req()
6868 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_req()
6869 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_req()
6870 msg = dpp_alloc_msg(DPP_PA_PKEX_EXCHANGE_REQ, attr_len); in dpp_pkex_build_exchange_req()
6993 size_t attr_len; in dpp_pkex_build_exchange_resp() local
6997 attr_len = 4 + 1; in dpp_pkex_build_exchange_resp()
6999 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_resp()
7000 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_resp()
7001 msg = dpp_alloc_msg(DPP_PA_PKEX_EXCHANGE_RESP, attr_len); in dpp_pkex_build_exchange_resp()
7408 size_t clear_len, attr_len; in dpp_pkex_build_commit_reveal_req() local
7418 attr_len = 4 + clear_len + AES_BLOCK_SIZE; in dpp_pkex_build_commit_reveal_req()
7421 attr_len += 5; in dpp_pkex_build_commit_reveal_req()
7423 msg = dpp_alloc_msg(DPP_PA_PKEX_COMMIT_REVEAL_REQ, attr_len); in dpp_pkex_build_commit_reveal_req()
7736 size_t clear_len, attr_len; in dpp_pkex_build_commit_reveal_resp() local
7741 attr_len = 4 + clear_len + AES_BLOCK_SIZE; in dpp_pkex_build_commit_reveal_resp()
7744 attr_len += 5; in dpp_pkex_build_commit_reveal_resp()
7746 msg = dpp_alloc_msg(DPP_PA_PKEX_COMMIT_REVEAL_RESP, attr_len); in dpp_pkex_build_commit_reveal_resp()