/optee_os-3.20.0/ta/pkcs11/src/ |
A D | processing.c | 229 if (rc) in entry_generate_secret() 233 if (rc) in entry_generate_secret() 237 if (rc) in entry_generate_secret() 246 if (rc) in entry_generate_secret() 267 if (rc) in entry_generate_secret() 274 if (rc) in entry_generate_secret() 278 if (rc) in entry_generate_secret() 282 if (rc) in entry_generate_secret() 311 if (rc) in entry_generate_secret() 373 if (rc) in tee2pkcs_add_attribute() [all …]
|
A D | processing_rsa.c | 31 if (rc) in pkcs2tee_proc_params_rsa_pss() 32 return rc; in pkcs2tee_proc_params_rsa_pss() 35 if (rc) in pkcs2tee_proc_params_rsa_pss() 39 if (rc) in pkcs2tee_proc_params_rsa_pss() 129 if (rc) in pkcs2tee_algo_rsa_pss() 133 if (rc) in pkcs2tee_algo_rsa_pss() 137 if (rc) in pkcs2tee_algo_rsa_pss() 215 if (rc) in pkcs2tee_proc_params_rsa_oaep() 219 if (rc) in pkcs2tee_proc_params_rsa_oaep() 223 if (rc) in pkcs2tee_proc_params_rsa_oaep() [all …]
|
A D | entry.c | 121 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in TA_InvokeCommandEntryPoint() local 136 if (params[0].memref.size < sizeof(rc)) in TA_InvokeCommandEntryPoint() 157 rc = entry_ping(ptypes, params); in TA_InvokeCommandEntryPoint() 161 rc = entry_ck_slot_list(ptypes, params); in TA_InvokeCommandEntryPoint() 164 rc = entry_ck_slot_info(ptypes, params); in TA_InvokeCommandEntryPoint() 167 rc = entry_ck_token_info(ptypes, params); in TA_InvokeCommandEntryPoint() 199 rc = entry_ck_login(client, ptypes, params); in TA_InvokeCommandEntryPoint() 364 DMSG("%s rc %#"PRIx32"/%s", id2str_ta_cmd(cmd), rc, id2str_rc(rc)); in TA_InvokeCommandEntryPoint() 366 TEE_MemMove(params[0].memref.buffer, &rc, sizeof(rc)); in TA_InvokeCommandEntryPoint() 367 params[0].memref.size = sizeof(rc); in TA_InvokeCommandEntryPoint() [all …]
|
A D | object.c | 252 if (rc) in create_object() 326 if (rc) in entry_create_object() 330 if (rc) in entry_create_object() 350 if (rc) in entry_create_object() 359 if (rc) in entry_create_object() 363 if (rc) in entry_create_object() 367 if (rc) in entry_create_object() 376 if (rc) in entry_create_object() 421 if (rc) in entry_destroy_object() 425 if (rc) in entry_destroy_object() [all …]
|
A D | pkcs11_attributes.c | 228 if (rc) in set_mandatory_boolprops() 251 if (rc) in set_mandatory_attributes() 487 if (rc) in create_storage_attributes() 498 if (rc) in create_storage_attributes() 503 if (rc) in create_storage_attributes() 517 if (rc) in create_genkey_attributes() 527 if (rc) in create_genkey_attributes() 532 if (rc) in create_genkey_attributes() 537 if (rc) in create_genkey_attributes() 2205 if (rc && rc != PKCS11_RV_NOT_FOUND) in set_secret_key_data() [all …]
|
A D | sanitize_object.c | 86 if (rc) in sanitize_class_and_type() 135 if (rc) in sanitize_class_and_type() 141 if (rc) in sanitize_class_and_type() 149 if (rc) in sanitize_class_and_type() 155 if (rc) in sanitize_class_and_type() 188 if (rc) in sanitize_boolprops() 239 if (rc) in sanitize_indirect_attr() 270 if (rc) in sanitize_client_object() 275 if (rc) in sanitize_client_object() 279 if (rc) in sanitize_client_object() [all …]
|
A D | processing_ec.c | 484 if (rc) in tee2pkcs_ec_attributes() 489 if (rc) in tee2pkcs_ec_attributes() 494 if (rc) in tee2pkcs_ec_attributes() 557 if (rc) in tee2pkcs_ec_attributes() 633 if (rc) in generate_ec_keys() 763 if (rc) in generate_eddsa_keys() 768 if (rc) in generate_eddsa_keys() 773 if (rc) in generate_eddsa_keys() 800 if (rc) in pkcs2tee_proc_params_eddsa() 804 if (rc) in pkcs2tee_proc_params_eddsa() [all …]
|
A D | processing_asymm.c | 157 return rc; in pkcs2tee_algorithm() 319 if (rc) in load_tee_key() 340 if (rc) in load_tee_key() 395 if (rc) in init_tee_operation() 413 return rc; in init_tee_operation() 426 if (rc) in init_asymm_operation() 430 if (rc) in init_asymm_operation() 434 if (!rc) in init_asymm_operation() 886 if (rc) in do_asymm_derivation() 902 if (rc) in do_asymm_derivation() [all …]
|
A D | serializer.c | 33 if (!rc) in serialargs_get() 36 return rc; in serialargs_get() 57 if (rc) in alloc_and_get() 58 return rc; in alloc_and_get() 116 if (rc) in serialargs_alloc_get_one_attribute() 117 return rc; in serialargs_alloc_get_one_attribute() 120 if (rc) in serialargs_alloc_get_one_attribute() 121 return rc; in serialargs_alloc_get_one_attribute() 137 if (rc) in serialargs_alloc_get_attributes() 138 return rc; in serialargs_alloc_get_attributes() [all …]
|
A D | pkcs11_token.c | 327 if (rc) in entry_ck_slot_info() 381 if (rc) in entry_ck_token_info() 448 if (rc) in entry_ck_token_mecha_ids() 504 if (rc) in entry_ck_token_mecha_info() 508 if (rc) in entry_ck_token_mecha_info() 610 if (rc) in entry_ck_open_session() 614 if (rc) in entry_ck_open_session() 714 if (rc) in entry_ck_close_session() 746 if (rc) in entry_ck_close_all_sessions() 787 if (rc) in entry_ck_session_info() [all …]
|
A D | processing_aes.c | 21 enum pkcs11_rc rc = PKCS11_CKR_OK; in tee_init_ctr_operation() local 31 rc = serialargs_get(&args, &incr_counter, sizeof(uint32_t)); in tee_init_ctr_operation() 32 if (rc) in tee_init_ctr_operation() 33 return rc; in tee_init_ctr_operation() 35 rc = serialargs_get_ptr(&args, &counter_bits, 16); in tee_init_ctr_operation() 36 if (rc) in tee_init_ctr_operation() 37 return rc; in tee_init_ctr_operation()
|
A D | processing_symm.c | 281 if (rc) in hash_secret_helper() 292 if (rc) { in hash_secret_helper() 352 if (rc) in load_tee_key() 378 if (rc) in load_tee_key() 440 if (rc) in tee_init_derive_symm() 448 if (rc) in tee_init_derive_symm() 452 if (rc) in tee_init_derive_symm() 620 if (rc) in init_symm_operation() 624 if (rc) in init_symm_operation() 628 if (!rc) in init_symm_operation() [all …]
|
A D | attributes.c | 41 if (rc) in add_attribute() 42 return rc; in add_attribute() 46 if (rc) in add_attribute() 47 return rc; in add_attribute() 50 if (rc) in add_attribute() 51 return rc; in add_attribute() 58 return rc; in add_attribute() 177 if (rc) in get_attribute() 178 return rc; in get_attribute() 226 if (rc) in modify_attributes_list() [all …]
|
A D | processing_digest.c | 91 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in init_digest_operation() local 95 rc = allocate_tee_operation(session, proc_params); in init_digest_operation() 96 if (!rc) in init_digest_operation() 99 return rc; in init_digest_operation() 116 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in step_digest_operation() local 177 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_VALUE, in step_digest_operation() 179 assert(!rc && secret_value && secret_value_size); in step_digest_operation() 213 rc = tee2pkcs_error(res); in step_digest_operation() 215 if (rc == PKCS11_CKR_OK || rc == PKCS11_CKR_BUFFER_TOO_SMALL) in step_digest_operation() 218 return rc; in step_digest_operation()
|
A D | persistent_token.c | 110 if (!rc) in hash_pin() 112 return rc; in hash_pin() 123 if (rc) in verify_pin() 124 return rc; in verify_pin() 127 rc = PKCS11_CKR_PIN_INCORRECT; in verify_pin() 129 return rc; in verify_pin() 494 rc = tee2pkcs_error(res); in load_persistent_object_attributes() 500 rc = PKCS11_CKR_DEVICE_MEMORY; in load_persistent_object_attributes() 512 rc = tee2pkcs_error(res); in load_persistent_object_attributes() 527 rc = PKCS11_CKR_OK; in load_persistent_object_attributes() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/aspeed/ |
A D | hace_ast2600.c | 132 return rc; in ast2600_hace_process() 192 if (rc) in ast2600_hace_update() 193 return rc; in ast2600_hace_update() 203 if (rc) in ast2600_hace_update() 204 return rc; in ast2600_hace_update() 251 if (rc) in ast2600_hace_final() 252 return rc; in ast2600_hace_final() 256 if (rc) in ast2600_hace_final() 267 if (rc) in ast2600_hace_final() 272 if (rc) in ast2600_hace_final() [all …]
|
A D | crypto_ast2600.c | 25 TEE_Result rc = TEE_ERROR_GENERIC; in crypto_ast2600_init() local 40 rc = ast2600_drvcrypt_register_hash(); in crypto_ast2600_init() 41 if (rc) { in crypto_ast2600_init() 42 EMSG("cannot register hash driver, rc=%d", rc); in crypto_ast2600_init() 43 return rc; in crypto_ast2600_init()
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | thread_spmc.c | 193 int rc = 0; in spmc_handle_rxtx_map() local 228 if (rc) in spmc_handle_rxtx_map() 231 if (rc) { in spmc_handle_rxtx_map() 283 rc = 0; in spmc_handle_rxtx_unmap() 293 int rc = 0; in spmc_handle_rx_release() local 302 rc = 0; in spmc_handle_rx_release() 433 rc = 1; in spmc_handle_partition_info_get() 640 return rc; in add_mem_share_frag() 675 if (rc) in add_mem_share() 710 if (rc) { in add_mem_share() [all …]
|
/optee_os-3.20.0/core/drivers/ |
A D | stm32_rng.c | 147 TEE_Result rc = TEE_ERROR_GENERIC; in stm32_rng_read() local 173 rc = read_available(rng_base, out_ptr, &sz); in stm32_rng_read() 176 assert(!rc || rc == TEE_ERROR_NO_DATA); in stm32_rng_read() 177 if (rc) in stm32_rng_read() 183 rc = TEE_ERROR_GENERIC; in stm32_rng_read() 187 if (!rc) { in stm32_rng_read() 197 assert(!rc || rc == TEE_ERROR_GENERIC); in stm32_rng_read() 200 return rc; in stm32_rng_read()
|
/optee_os-3.20.0/core/lib/scmi-server/ |
A D | scmi_server.c | 75 int rc = 0; in scmi_server_initialize() local 77 rc = scmi_arch_init(); in scmi_server_initialize() 78 if (rc < 0) { in scmi_server_initialize() 79 EMSG("SCMI server init failed: %d", rc); in scmi_server_initialize()
|
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/pm/ |
A D | psci.c | 153 int rc = 0; in psci_cpu_on() local 165 rc = PSCI_RET_ALREADY_ON; in psci_cpu_on() 168 rc = PSCI_RET_ON_PENDING; in psci_cpu_on() 171 rc = PSCI_RET_DENIED; in psci_cpu_on() 175 rc = PSCI_RET_SUCCESS; in psci_cpu_on() 183 if (rc == PSCI_RET_SUCCESS) { in psci_cpu_on() 188 return rc; in psci_cpu_on()
|
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/ |
A D | stm32_util.h | 138 int rc = !*refcnt; in incr_shrefcnt() local 149 return rc; in incr_shrefcnt() 155 int rc = 0; in decr_shrefcnt() local 163 rc = !*refcnt; in decr_shrefcnt() 166 rc = (*refcnt == SHREFCNT_NONSECURE_FLAG); in decr_shrefcnt() 170 return rc; in decr_shrefcnt()
|
/optee_os-3.20.0/core/drivers/tpm2/ |
A D | tpm2_tcg.c | 15 enum tpm2_result rc = TPM2_OK; in tpm2_tcg_get_pcr_info() local 17 rc = tpm2_chip_get_caps(&caps); in tpm2_tcg_get_pcr_info() 18 if (rc) in tpm2_tcg_get_pcr_info()
|
/optee_os-3.20.0/core/include/kernel/ |
A D | spinlock.h | 80 unsigned int rc; in cpu_spin_trylock() local 83 rc = __cpu_spin_trylock(lock); in cpu_spin_trylock() 84 if (!rc) in cpu_spin_trylock() 86 return !rc; in cpu_spin_trylock()
|
/optee_os-3.20.0/core/drivers/bnxt/ |
A D | bnxt_fw.c | 427 int rc = BNXT_FAILURE; in ape_section_copy() local 485 rc = BNXT_SUCCESS; in ape_section_copy() 488 return rc; in ape_section_copy() 523 int rc = BNXT_SUCCESS; in bnxt_load() local 539 rc = BNXT_FAILURE; in bnxt_load() 546 rc = BNXT_FAILURE; in bnxt_load() 553 rc = BNXT_FAILURE; in bnxt_load() 559 if (rc != BNXT_SUCCESS) in bnxt_load() 563 if (rc != BNXT_SUCCESS) in bnxt_load() 569 if (rc == BNXT_SUCCESS) { in bnxt_load() [all …]
|