Lines Matching refs:ret

30     psa_status_t ret;  in test_entry()  local
46 ret = psa_adac_issue_command(SDP_LOCK_DEBUG_CMD, request, NULL, 0); in test_entry()
47 if (ret != PSA_SUCCESS) { in test_entry()
53 ret = psa_adac_parse_response(SDP_LOCK_DEBUG_CMD, response); in test_entry()
54 if (ret != PSA_SUCCESS) { in test_entry()
66 ret = psa_adac_load_certificate_chain(chain_file, &chain, &chain_size); in test_entry()
67 if (ret != PSA_SUCCESS) { in test_entry()
76 ret = psa_adac_read_extensions((uint32_t *)chain, chain_size, exts, &exts_count); in test_entry()
77 if (ret != PSA_SUCCESS) { in test_entry()
83 ret = psa_adac_issue_command(SDP_DISCOVERY_CMD, request, NULL, 0); in test_entry()
84 if (ret != PSA_SUCCESS) { in test_entry()
90 ret = psa_adac_parse_response(SDP_DISCOVERY_CMD, response); in test_entry()
91 if (ret != PSA_SUCCESS) { in test_entry()
96 ret = psa_adac_check_cryptosystem_support(response, key_type); in test_entry()
97 if (ret == PSA_ERROR_NOT_SUPPORTED) { in test_entry()
108 ret = psa_adac_get_private_key(key_file, &key_type, &handle, &key, &key_size); in test_entry()
109 if (ret != PSA_SUCCESS) { in test_entry()
114 ret = psa_adac_issue_command(SDP_AUTH_START_CMD, request, NULL, 0); in test_entry()
115 if (ret != PSA_SUCCESS) { in test_entry()
121 ret = psa_adac_parse_response(SDP_AUTH_START_CMD, response); in test_entry()
122 if (ret != PSA_SUCCESS) { in test_entry()
132 ret = psa_adac_construct_token(challenge1->challenge_vector, in test_entry()
135 if (ret != PSA_SUCCESS) { in test_entry()
141 ret = psa_adac_issue_command(SDP_AUTH_START_CMD, request, NULL, 0); in test_entry()
142 if (ret != PSA_SUCCESS) { in test_entry()
148 ret = psa_adac_parse_response(SDP_AUTH_START_CMD, response); in test_entry()
149 if (ret != PSA_SUCCESS) { in test_entry()
159 ret = psa_adac_construct_token(challenge2->challenge_vector, in test_entry()
162 if (ret != PSA_SUCCESS) { in test_entry()
168 ret = psa_adac_send_certificate(exts, exts_count); in test_entry()
169 if (ret != PSA_SUCCESS) { in test_entry()
175 ret = psa_adac_issue_command(SDP_AUTH_RESPONSE_CMD, request, (uint8_t *)token1, token1_size); in test_entry()
176 if (ret != PSA_SUCCESS) { in test_entry()
183 ret = psa_adac_parse_response(SDP_AUTH_RESPONSE_CMD, response); in test_entry()
184 if (ret != PSA_SUCCESS) { in test_entry()
197 ret = psa_adac_issue_command(SDP_AUTH_RESPONSE_CMD, request, (uint8_t *)token2, token2_size); in test_entry()
198 if (ret != PSA_SUCCESS) { in test_entry()
205 ret = psa_adac_parse_response(SDP_AUTH_RESPONSE_CMD, response); in test_entry()
206 if (ret != PSA_SUCCESS) { in test_entry()