Lines Matching refs:ret
30 psa_status_t ret; in test_entry() local
48 ret = psa_adac_issue_command(SDP_LOCK_DEBUG_CMD, request, NULL, 0); in test_entry()
49 if (ret != PSA_SUCCESS) { in test_entry()
55 ret = psa_adac_parse_response(SDP_LOCK_DEBUG_CMD, response); in test_entry()
56 if (ret != PSA_SUCCESS) { in test_entry()
68 ret = psa_adac_load_certificate_chain(chain_file, &chain, &chain_size); in test_entry()
69 if (ret != PSA_SUCCESS) { in test_entry()
78 ret = psa_adac_read_extensions((uint32_t *)chain, chain_size, exts, &exts_count); in test_entry()
79 if (ret != PSA_SUCCESS) { in test_entry()
85 ret = psa_adac_issue_command(SDP_DISCOVERY_CMD, request, NULL, 0); in test_entry()
86 if (ret != PSA_SUCCESS) { in test_entry()
92 ret = psa_adac_parse_response(SDP_DISCOVERY_CMD, response); in test_entry()
93 if (ret != PSA_SUCCESS) { in test_entry()
98 ret = psa_adac_check_cryptosystem_support(response, key_type); in test_entry()
99 if (ret == PSA_ERROR_NOT_SUPPORTED) { in test_entry()
110 ret = psa_adac_get_private_key(key_file, &key_type, &handle, &key, &key_size); in test_entry()
111 if (ret != PSA_SUCCESS) { in test_entry()
116 ret = psa_adac_issue_command(SDP_AUTH_START_CMD, request, NULL, 0); in test_entry()
117 if (ret != PSA_SUCCESS) { in test_entry()
123 ret = psa_adac_parse_response(SDP_AUTH_START_CMD, response); in test_entry()
124 if (ret != PSA_SUCCESS) { in test_entry()
139 ret = psa_adac_construct_token(challenge->challenge_vector, sizeof(challenge->challenge_vector), in test_entry()
142 if (ret != PSA_SUCCESS) { in test_entry()
148 ret = psa_adac_send_certificate(exts, exts_count); in test_entry()
149 if (ret != PSA_SUCCESS) { in test_entry()
155 ret = psa_adac_issue_command(SDP_AUTH_RESPONSE_CMD, request, (uint8_t *)token, token_size); in test_entry()
156 if (ret != PSA_SUCCESS) { in test_entry()
163 ret = psa_adac_parse_response(SDP_AUTH_RESPONSE_CMD, response); in test_entry()
164 if (ret != PSA_SUCCESS) { in test_entry()
177 ret = psa_adac_issue_command(SDP_RESUME_BOOT_CMD, request, NULL, 0); in test_entry()
178 if (ret != PSA_SUCCESS) { in test_entry()
184 ret = psa_adac_parse_response(SDP_RESUME_BOOT_CMD, response); in test_entry()
185 if (ret != PSA_SUCCESS) { in test_entry()
197 ret = psa_adac_issue_command(SDP_LOCK_DEBUG_CMD, request, NULL, 0); in test_entry()
198 if (ret != PSA_SUCCESS) { in test_entry()
204 ret = psa_adac_parse_response(SDP_LOCK_DEBUG_CMD, response); in test_entry()
205 if (ret != PSA_SUCCESS) { in test_entry()