/external/tpm2-tss/test/integration/ |
D | sapi-hmac-auth.int.c | 46 if (rc != TSS2_RC_SUCCESS || tcti_ctx == NULL) { in create_policy() 62 if (rc != TSS2_RC_SUCCESS) { in create_policy() 70 if (rc != TSS2_RC_SUCCESS) { in create_policy() 79 if (rc != TSS2_RC_SUCCESS) { in create_policy() 86 if (rc != TSS2_RC_SUCCESS) { in create_policy() 145 if (rc != TSS2_RC_SUCCESS || tcti_ctx == NULL) { in nv_rw_with_session() 158 if (rc != TSS2_RC_SUCCESS) { in nv_rw_with_session() 169 if (rc != TSS2_RC_SUCCESS) { in nv_rw_with_session() 178 if (rc != TSS2_RC_SUCCESS) { in nv_rw_with_session() 200 if (rc != TSS2_RC_SUCCESS) { in nv_rw_with_session() [all …]
|
D | sapi-system-api.int.c | 47 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 53 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 65 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 72 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 78 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 84 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 90 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 103 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 124 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 138 if (rc != TSS2_RC_SUCCESS) { in test_invoke() [all …]
|
D | sapi-encrypt-decrypt.int.c | 43 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 50 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 62 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 67 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 74 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 80 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 92 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 97 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
|
D | sapi-encrypt-decrypt-2.int.c | 39 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 46 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 58 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 63 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 70 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 76 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 89 if (rc != TSS2_RC_SUCCESS) { in test_invoke() 94 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
|
D | main-esapi.c | 76 return TSS2_RC_SUCCESS; in tcti_proxy_transmit() 81 if (rval != TSS2_RC_SUCCESS) { in tcti_proxy_transmit() 89 if (rval != TSS2_RC_SUCCESS) { in tcti_proxy_transmit() 121 return TSS2_RC_SUCCESS; in tcti_proxy_receive() 126 if (rval != TSS2_RC_SUCCESS) { in tcti_proxy_receive() 159 return TSS2_RC_SUCCESS; in tcti_proxy_initialize() 175 return TSS2_RC_SUCCESS; in tcti_proxy_initialize() 215 if (rc != TSS2_RC_SUCCESS) { in main() 225 if (rc != TSS2_RC_SUCCESS) { in main() 230 if (rc != TSS2_RC_SUCCESS) { in main() [all …]
|
D | sapi-context-util.c | 38 if (rc != TSS2_RC_SUCCESS) { in tcti_device_init() 52 if (rc != TSS2_RC_SUCCESS) { in tcti_device_init() 78 if (rc != TSS2_RC_SUCCESS) { in tcti_socket_init() 90 if (rc != TSS2_RC_SUCCESS) { in tcti_socket_init() 114 if (rc != TSS2_RC_SUCCESS) { in tcti_fuzzing_init() 126 if (rc != TSS2_RC_SUCCESS) { in tcti_fuzzing_init() 161 if (rc != TSS2_RC_SUCCESS) { in sapi_init_from_tcti_ctx() 247 if (rc != TSS2_RC_SUCCESS) in sapi_teardown_full()
|
/external/tpm2-tss/src/tss2-mu/ |
D | tpms-types.c | 30 TSS2_RC ret = TSS2_RC_SUCCESS; \ 57 if (ret != TSS2_RC_SUCCESS) \ 61 if (ret != TSS2_RC_SUCCESS) \ 67 if (ret != TSS2_RC_SUCCESS) \ 75 return TSS2_RC_SUCCESS; \ 78 TPMS_PCR_MARSHAL(TPMS_PCR_SELECT, TSS2_RC_SUCCESS) 91 TSS2_RC ret = TSS2_RC_SUCCESS; \ 110 if (ret != TSS2_RC_SUCCESS) \ 128 if (ret != TSS2_RC_SUCCESS) \ 136 return TSS2_RC_SUCCESS; \ [all …]
|
D | tpmt-types.c | 28 TSS2_RC ret = TSS2_RC_SUCCESS; \ 44 if (ret != TSS2_RC_SUCCESS) \ 49 if (offset && ret == TSS2_RC_SUCCESS) { \ 60 TSS2_RC ret = TSS2_RC_SUCCESS; \ 76 if (ret != TSS2_RC_SUCCESS) \ 81 if (offset && ret == TSS2_RC_SUCCESS) { \ 92 TSS2_RC ret = TSS2_RC_SUCCESS; \ 108 if (ret != TSS2_RC_SUCCESS) \ 112 if (ret != TSS2_RC_SUCCESS) \ 117 if (offset && ret == TSS2_RC_SUCCESS) { \ [all …]
|
/external/tpm2-tss/src/tss2-tcti/ |
D | tcti-mssim.c | 69 TSS2_RC rc = TSS2_RC_SUCCESS; in tcti_platform_command() 77 if (rc != TSS2_RC_SUCCESS) { in tcti_platform_command() 110 if (rc != TSS2_RC_SUCCESS) { in tcti_platform_command() 133 if (rc == TSS2_RC_SUCCESS) { in send_sim_session_end() 162 if (rc != TSS2_RC_SUCCESS) { in send_sim_cmd_setup() 170 if (rc != TSS2_RC_SUCCESS) { in send_sim_cmd_setup() 175 if (rc != TSS2_RC_SUCCESS) { in send_sim_cmd_setup() 197 if (rc != TSS2_RC_SUCCESS) { in tcti_mssim_transmit() 201 if (rc != TSS2_RC_SUCCESS) { in tcti_mssim_transmit() 213 if (rc != TSS2_RC_SUCCESS) { in tcti_mssim_transmit() [all …]
|
D | tcti-common.c | 46 return TSS2_RC_SUCCESS; in tcti_common_cancel_checks() 61 return TSS2_RC_SUCCESS; in tcti_common_transmit_checks() 76 return TSS2_RC_SUCCESS; in tcti_common_receive_checks() 86 return TSS2_RC_SUCCESS; in tcti_common_set_locality_checks() 114 if (rc != TSS2_RC_SUCCESS) { in header_unmarshal() 122 if (rc != TSS2_RC_SUCCESS) { in header_unmarshal() 130 if (rc != TSS2_RC_SUCCESS) { in header_unmarshal() 149 if (rc != TSS2_RC_SUCCESS) { in header_marshal() 157 if (rc != TSS2_RC_SUCCESS) { in header_marshal() 165 if (rc != TSS2_RC_SUCCESS) { in header_marshal()
|
D | tctildr-dl.c | 86 return TSS2_RC_SUCCESS; in handle_from_name() 101 return TSS2_RC_SUCCESS; in handle_from_name() 120 return TSS2_RC_SUCCESS; in handle_from_name() 137 if (r != TSS2_RC_SUCCESS) { in tcti_from_file() 149 if (r != TSS2_RC_SUCCESS) { in tcti_from_file() 160 return TSS2_RC_SUCCESS; in tcti_from_file() 180 if (rc != TSS2_RC_SUCCESS) in get_info_default() 193 if (rc != TSS2_RC_SUCCESS || handle == NULL) { in get_info_default() 245 if (r == TSS2_RC_SUCCESS) in tctildr_get_default() 246 return TSS2_RC_SUCCESS; in tctildr_get_default() [all …]
|
D | tcti-tbs.c | 66 TSS2_RC rc = TSS2_RC_SUCCESS; in tcti_tbs_transmit() 72 if (rc != TSS2_RC_SUCCESS) { in tcti_tbs_transmit() 85 return TSS2_RC_SUCCESS; in tcti_tbs_transmit() 116 TSS2_RC rc = TSS2_RC_SUCCESS; in tcti_tbs_receive() 125 if (rc != TSS2_RC_SUCCESS) { in tcti_tbs_receive() 140 return TSS2_RC_SUCCESS; in tcti_tbs_receive() 172 if (rc != TSS2_RC_SUCCESS) { in tcti_tbs_receive() 216 TSS2_RC rc = TSS2_RC_SUCCESS; in tcti_tbs_cancel() 271 return TSS2_RC_SUCCESS; in Tss2_Tcti_Tbs_Init() 319 return TSS2_RC_SUCCESS; in Tss2_Tcti_Tbs_Init()
|
D | tctildr.c | 66 if (r != TSS2_RC_SUCCESS) { in tcti_from_init() 78 if (r != TSS2_RC_SUCCESS) { in tcti_from_init() 87 return TSS2_RC_SUCCESS; in tcti_from_init() 108 if (r != TSS2_RC_SUCCESS) { in tcti_from_info() 115 return TSS2_RC_SUCCESS; in tcti_from_info() 149 return TSS2_RC_SUCCESS; in tctildr_conf_parse() 155 return TSS2_RC_SUCCESS; in tctildr_conf_parse() 173 return TSS2_RC_SUCCESS; in tctildr_conf_parse() 293 TSS2_RC rc = TSS2_RC_SUCCESS; in copy_info() 346 if (rc != TSS2_RC_SUCCESS) in Tss2_TctiLdr_GetInfo() [all …]
|
/external/tpm2-tss/test/unit/ |
D | tctildr.c | 77 return TSS2_RC_SUCCESS; in __wrap_tctildr_get_info() 86 if (rc == TSS2_RC_SUCCESS) { in __wrap_tctildr_get_tcti() 98 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_init_calloc_fail() 108 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_init_second_init_fail() 121 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_init_success() 125 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_init_success() 127 assert_int_equal (rc, TSS2_RC_SUCCESS); in tcti_from_init_success() 162 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_info_success() 165 will_return(local_init, TSS2_RC_SUCCESS); in tcti_from_info_success() 167 assert_int_equal (rc, TSS2_RC_SUCCESS); in tcti_from_info_success() [all …]
|
D | tctildr-tcti.c | 33 if (rc == TSS2_RC_SUCCESS) { in __wrap_tctildr_get_info() 46 if (rc == TSS2_RC_SUCCESS) { in __wrap_tctildr_get_tcti() 147 will_return (tctildr_mock_transmit, TSS2_RC_SUCCESS); in tctildr_transmit_test() 149 assert_int_equal (rc, TSS2_RC_SUCCESS); in tctildr_transmit_test() 170 will_return (tctildr_mock_receive, TSS2_RC_SUCCESS); in tctildr_receive_test() 172 assert_int_equal (rc, TSS2_RC_SUCCESS); in tctildr_receive_test() 191 will_return (tctildr_mock_cancel, TSS2_RC_SUCCESS); in tctildr_cancel_test() 193 assert_int_equal (rc, TSS2_RC_SUCCESS); in tctildr_cancel_test() 213 will_return (tctildr_mock_get_poll_handles, TSS2_RC_SUCCESS); in tctildr_get_poll_handles_test() 215 assert_int_equal (rc, TSS2_RC_SUCCESS); in tctildr_get_poll_handles_test() [all …]
|
D | tcti-device.c | 77 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_device_init_size_test() 80 assert_int_equal (ret, TSS2_RC_SUCCESS); in tcti_device_init_size_test() 87 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_device_init_conf_fail() 91 assert_true (ret == TSS2_RC_SUCCESS); in tcti_device_init_conf_fail() 106 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_device_init_conf_default_fail() 110 assert_true (ret == TSS2_RC_SUCCESS); in tcti_device_init_conf_default_fail() 126 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_device_init_conf_default_success() 130 assert_true (ret == TSS2_RC_SUCCESS); in tcti_device_init_conf_default_success() 135 assert_true (ret == TSS2_RC_SUCCESS); in tcti_device_init_conf_default_success() 173 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_device_setup() [all …]
|
D | tcti-mssim.c | 49 assert_int_equal (rc, TSS2_RC_SUCCESS); in conf_str_to_host_port_success_test() 72 assert_int_equal (rc, TSS2_RC_SUCCESS); in conf_str_to_host_port_no_port_test() 91 assert_int_equal (rc, TSS2_RC_SUCCESS); in conf_str_to_host_ipv6_port_success_test() 110 assert_int_equal (rc, TSS2_RC_SUCCESS); in conf_str_to_host_ipv6_port_no_port_test() 158 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_socket_init_size_test() 161 assert_int_equal (ret, TSS2_RC_SUCCESS); in tcti_socket_init_size_test() 214 TSS2_RC ret = TSS2_RC_SUCCESS; in tcti_socket_init_from_conf() 219 assert_true (ret == TSS2_RC_SUCCESS); in tcti_socket_init_from_conf() 241 assert_int_equal (ret, TSS2_RC_SUCCESS); in tcti_socket_init_from_conf() 323 TSS2_RC rc = TSS2_RC_SUCCESS; in tcti_socket_receive_success_test() [all …]
|
D | TPM2B-marshal.c | 42 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_success() 49 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_success() 89 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_success_offset() 98 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_success_offset() 139 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_null_with_offset() 144 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_null_with_offset() 148 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_null_with_offset() 160 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_null_with_offset() 164 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_null_with_offset() 208 assert_int_equal (rc, TSS2_RC_SUCCESS); in tpm2b_marshal_buffer_size_lt_data_nad_lt_offset() [all …]
|
/external/tpm2-tss/src/tss2-fapi/ |
D | tpm_json_deserialize.c | 60 return TSS2_RC_SUCCESS; \ 77 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_EMPTY_deserialize() 114 return TSS2_RC_SUCCESS; in ifapi_hex_to_byte_ary() 149 return TSS2_RC_SUCCESS; in ifapi_json_byte_deserialize() 223 return TSS2_RC_SUCCESS; in get_number_from_json() 240 if (r != TSS2_RC_SUCCESS) { in get_boolean_from_json() 253 return TSS2_RC_SUCCESS; in get_boolean_from_json() 290 return TSS2_RC_SUCCESS; in ifapi_json_pcr_selection_deserialize() 316 return TSS2_RC_SUCCESS; in ifapi_json_UINT8_ARY_deserialize() 390 return TSS2_RC_SUCCESS; in ifapi_json_BYTE_array_deserialize() [all …]
|
D | tpm_json_serialize.c | 40 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_EMPTY_serialize() 77 return TSS2_RC_SUCCESS; in ifapi_json_pcr_select_serialize() 97 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_PCR_SELECT_serialize() 128 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_PCR_SELECTION_serialize() 156 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_TAGGED_PCR_SELECT_serialize() 175 return TSS2_RC_SUCCESS; in ifapi_json_UINT16_serialize() 194 return TSS2_RC_SUCCESS; in ifapi_json_UINT32_serialize() 213 return TSS2_RC_SUCCESS; in ifapi_json_INT32_serialize() 234 return TSS2_RC_SUCCESS; in ifapi_json_UINT64_serialize() 254 return TSS2_RC_SUCCESS; in ifapi_json_UINT64_serialize() [all …]
|
D | ifapi_policy_json_deserialize.c | 137 return TSS2_RC_SUCCESS; in ifapi_json_TPMI_POLICYTYPE_deserialize_txt() 150 return TSS2_RC_SUCCESS; in ifapi_json_TPMI_POLICYTYPE_deserialize_txt() 238 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYSIGNED_deserialize() 296 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYSECRET_deserialize() 323 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYLOCALITY_deserialize() 395 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYNV_deserialize() 436 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCOUNTERTIMER_deserialize() 463 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCOMMANDCODE_deserialize() 482 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYPHYSICALPRESENCE_deserialize() 509 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCPHASH_deserialize() [all …]
|
D | ifapi_policy_json_serialize.c | 39 return TSS2_RC_SUCCESS; in ifapi_json_char_serialize() 90 return TSS2_RC_SUCCESS; in ifapi_json_TPMI_POLICYTYPE_serialize_txt() 190 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYSIGNED_serialize() 256 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYSECRET_serialize() 284 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYLOCALITY_serialize() 357 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYNV_serialize() 397 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCOUNTERTIMER_serialize() 425 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCOMMANDCODE_serialize() 445 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYPHYSICALPRESENCE_serialize() 473 return TSS2_RC_SUCCESS; in ifapi_json_TPMS_POLICYCPHASH_serialize() [all …]
|
/external/tpm2-tss/src/tss2-esys/ |
D | esys_mu.c | 59 return TSS2_RC_SUCCESS; in iesys_MU_BYTE_array_Marshal() 101 return TSS2_RC_SUCCESS; in iesys_MU_BYTE_array_Unmarshal() 125 return TSS2_RC_SUCCESS; in Tss2_MU_IESYSC_RESOURCE_TYPE_CONSTANT_check() 129 return TSS2_RC_SUCCESS; in Tss2_MU_IESYSC_RESOURCE_TYPE_CONSTANT_check() 180 if (ret != TSS2_RC_SUCCESS) { in iesys_MU_IESYSC_PARAM_ENCRYPT_Unmarshal() 189 return TSS2_RC_SUCCESS; in iesys_MU_IESYSC_PARAM_ENCRYPT_Unmarshal() 208 return TSS2_RC_SUCCESS; in iesys_MU_IESYSC_PARAM_ENCRYPT_check() 212 return TSS2_RC_SUCCESS; in iesys_MU_IESYSC_PARAM_ENCRYPT_check() 263 if (ret != TSS2_RC_SUCCESS) { in iesys_MU_IESYSC_PARAM_DECRYPT_Unmarshal() 272 return TSS2_RC_SUCCESS; in iesys_MU_IESYSC_PARAM_DECRYPT_Unmarshal() [all …]
|
D | esys_tr.c | 41 TSS2_RC r = TSS2_RC_SUCCESS; in Esys_TR_Serialize() 61 return TSS2_RC_SUCCESS; in Esys_TR_Serialize() 99 return TSS2_RC_SUCCESS; in Esys_TR_Deserialize() 151 r = TSS2_RC_SUCCESS; in Esys_TR_FromTPMPublic_Async() 189 TSS2_RC r = TSS2_RC_SUCCESS; in Esys_TR_FromTPMPublic_Finish() 241 return TSS2_RC_SUCCESS; in Esys_TR_FromTPMPublic_Finish() 354 return TSS2_RC_SUCCESS; in Esys_TR_Close() 397 return TSS2_RC_SUCCESS; in Esys_TR_SetAuth() 480 return TSS2_RC_SUCCESS; in Esys_TRSess_GetAttributes() 514 return TSS2_RC_SUCCESS; in Esys_TRSess_SetAttributes() [all …]
|
/external/tpm2-tss/src/util/ |
D | aux_util.h | 19 if (r != TSS2_RC_SUCCESS) { \ 25 if (r != TSS2_RC_SUCCESS) { \ 38 if (r != TSS2_RC_SUCCESS) { \ 52 if (r != TSS2_RC_SUCCESS) { \ 76 if (r != TSS2_RC_SUCCESS) { \ 82 if (r != TSS2_RC_SUCCESS) { \
|