Lines Matching refs:attr_len
1344 size_t len[2], siv_len, attr_len; in dpp_auth_init() local
1397 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + wpabuf_len(pi) + in dpp_auth_init()
1399 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_REQ, attr_len); in dpp_auth_init()
1876 size_t len[2], siv_len, attr_len; in dpp_auth_build_resp() local
1941 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
1943 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_RESP, attr_len); in dpp_auth_build_resp()
2055 size_t len[2], siv_len, attr_len; in dpp_auth_build_resp_status() local
2061 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + 4 + sizeof(wrapped_data); in dpp_auth_build_resp_status()
2062 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_RESP, attr_len); in dpp_auth_build_resp_status()
2160 size_t attr_len; in dpp_auth_req_rx() local
2165 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_req_rx()
2176 i_proto = dpp_get_attr(attr_start, attr_len, DPP_ATTR_I_PROTOCOL_KEY, in dpp_auth_req_rx()
2220 len[1] = attr_len; in dpp_auth_req_rx()
2300 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_req_rx()
2371 size_t len[2], attr_len; in dpp_auth_build_conf() local
2379 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_conf()
2381 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_CONF, attr_len); in dpp_auth_build_conf()
2445 const u8 *attr_start, size_t attr_len, in dpp_auth_resp_rx_status() argument
2472 len[1] = attr_len; in dpp_auth_resp_rx_status()
2532 const u8 *attr_start, size_t attr_len) in dpp_auth_resp_rx() argument
2548 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_auth_resp_rx()
2561 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_resp_rx()
2563 r_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_resp_rx()
2581 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_resp_rx()
2602 status = dpp_get_attr(attr_start, attr_len, DPP_ATTR_STATUS, in dpp_auth_resp_rx()
2613 attr_len, wrapped_data, in dpp_auth_resp_rx()
2618 r_proto = dpp_get_attr(attr_start, attr_len, DPP_ATTR_R_PROTOCOL_KEY, in dpp_auth_resp_rx()
2663 len[1] = attr_len; in dpp_auth_resp_rx()
2796 const u8 *attr_start, size_t attr_len) in dpp_auth_conf_rx() argument
2807 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_auth_conf_rx()
2820 attr_len = wrapped_data - 4 - attr_start; in dpp_auth_conf_rx()
2822 r_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_conf_rx()
2841 i_bootstrap = dpp_get_attr(attr_start, attr_len, in dpp_auth_conf_rx()
2863 status = dpp_get_attr(attr_start, attr_len, DPP_ATTR_STATUS, in dpp_auth_conf_rx()
2879 len[1] = attr_len; in dpp_auth_conf_rx()
3394 size_t attr_len) in dpp_conf_req_rx() argument
3404 if (dpp_check_attrs(attr_start, attr_len) < 0) { in dpp_conf_req_rx()
3410 wrapped_data = dpp_get_attr(attr_start, attr_len, DPP_ATTR_WRAPPED_DATA, in dpp_conf_req_rx()
5000 size_t attr_len; in dpp_pkex_build_exchange_req() local
5036 attr_len = 4 + 2; in dpp_pkex_build_exchange_req()
5038 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_req()
5039 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_req()
5040 msg = dpp_alloc_msg(DPP_PA_PKEX_EXCHANGE_REQ, attr_len); in dpp_pkex_build_exchange_req()
5150 size_t attr_len; in dpp_pkex_rx_exchange_req() local
5270 attr_len = 4 + 1; in dpp_pkex_rx_exchange_req()
5272 attr_len += 4 + os_strlen(identifier); in dpp_pkex_rx_exchange_req()
5273 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_rx_exchange_req()
5274 msg = dpp_alloc_msg(DPP_PA_PKEX_EXCHANGE_RESP, attr_len); in dpp_pkex_rx_exchange_req()