Lines Matching refs:unwrapped_len
2404 size_t unwrapped_len = 0; in dpp_auth_req_rx() local
2517 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_auth_req_rx()
2518 unwrapped = os_malloc(unwrapped_len); in dpp_auth_req_rx()
2528 unwrapped, unwrapped_len); in dpp_auth_req_rx()
2530 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_auth_req_rx()
2535 i_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_I_NONCE, in dpp_auth_req_rx()
2544 i_capab = dpp_get_attr(unwrapped, unwrapped_len, in dpp_auth_req_rx()
2554 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_req_rx()
2641 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_req_rx()
2855 size_t unwrapped_len = 0; in dpp_auth_resp_rx_status() local
2881 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_auth_resp_rx_status()
2882 unwrapped = os_malloc(unwrapped_len); in dpp_auth_resp_rx_status()
2892 unwrapped, unwrapped_len); in dpp_auth_resp_rx_status()
2894 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_auth_resp_rx_status()
2899 i_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_I_NONCE, in dpp_auth_resp_rx_status()
2911 r_capab = dpp_get_attr(unwrapped, unwrapped_len, in dpp_auth_resp_rx_status()
2940 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_resp_rx_status()
2953 size_t unwrapped_len = 0, unwrapped2_len = 0; in dpp_auth_resp_rx() local
3104 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_auth_resp_rx()
3105 unwrapped = os_malloc(unwrapped_len); in dpp_auth_resp_rx()
3115 unwrapped, unwrapped_len); in dpp_auth_resp_rx()
3117 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_auth_resp_rx()
3122 r_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_R_NONCE, in dpp_auth_resp_rx()
3131 i_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_I_NONCE, in dpp_auth_resp_rx()
3149 r_capab = dpp_get_attr(unwrapped, unwrapped_len, in dpp_auth_resp_rx()
3176 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_resp_rx()
3181 wrapped2 = dpp_get_attr(unwrapped, unwrapped_len, in dpp_auth_resp_rx()
3230 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_resp_rx()
3236 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_resp_rx()
3252 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_resp_rx()
3269 size_t unwrapped_len = 0; in dpp_auth_conf_rx_failure() local
3284 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_auth_conf_rx_failure()
3285 unwrapped = os_malloc(unwrapped_len); in dpp_auth_conf_rx_failure()
3297 unwrapped, unwrapped_len); in dpp_auth_conf_rx_failure()
3299 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_auth_conf_rx_failure()
3304 r_nonce = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_R_NONCE, in dpp_auth_conf_rx_failure()
3325 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_conf_rx_failure()
3339 size_t unwrapped_len = 0; in dpp_auth_conf_rx() local
3443 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_auth_conf_rx()
3444 unwrapped = os_malloc(unwrapped_len); in dpp_auth_conf_rx()
3454 unwrapped, unwrapped_len); in dpp_auth_conf_rx()
3456 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_auth_conf_rx()
3461 i_auth = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_I_AUTH_TAG, in dpp_auth_conf_rx()
3480 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_conf_rx()
3484 bin_clear_free(unwrapped, unwrapped_len); in dpp_auth_conf_rx()
4415 size_t unwrapped_len = 0; in dpp_conf_req_rx() local
4443 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_conf_req_rx()
4444 unwrapped = os_malloc(unwrapped_len); in dpp_conf_req_rx()
4454 unwrapped, unwrapped_len); in dpp_conf_req_rx()
4456 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_conf_req_rx()
4461 e_nonce = dpp_get_attr(unwrapped, unwrapped_len, in dpp_conf_req_rx()
4472 config_attr = dpp_get_attr(unwrapped, unwrapped_len, in dpp_conf_req_rx()
5398 size_t unwrapped_len = 0; in dpp_conf_resp_rx() local
5419 unwrapped_len = wrapped_data_len - AES_BLOCK_SIZE; in dpp_conf_resp_rx()
5420 unwrapped = os_malloc(unwrapped_len); in dpp_conf_resp_rx()
5435 unwrapped, unwrapped_len); in dpp_conf_resp_rx()
5437 if (dpp_check_attrs(unwrapped, unwrapped_len) < 0) { in dpp_conf_resp_rx()
5442 e_nonce = dpp_get_attr(unwrapped, unwrapped_len, in dpp_conf_resp_rx()
5470 conf_obj = dpp_get_attr(unwrapped, unwrapped_len, DPP_ATTR_CONFIG_OBJ, in dpp_conf_resp_rx()
5482 conf_obj = dpp_get_attr_next(conf_obj, unwrapped, unwrapped_len, in dpp_conf_resp_rx()