Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 42) sorted by relevance

12

/optee_os/ta/pkcs11/src/
A Dprocessing.c223 if (rc) in entry_generate_secret()
227 if (rc) in entry_generate_secret()
231 if (rc) in entry_generate_secret()
240 if (rc) in entry_generate_secret()
261 if (rc) in entry_generate_secret()
268 if (rc) in entry_generate_secret()
272 if (rc) in entry_generate_secret()
276 if (rc) in entry_generate_secret()
305 if (rc) in entry_generate_secret()
367 if (rc) in tee2pkcs_add_attribute()
[all …]
A Dprocessing_rsa.c31 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 Dobject.c252 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 Dentry.c121 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 Dpkcs11_attributes.c227 if (rc) in set_mandatory_boolprops()
250 if (rc) in set_mandatory_attributes()
480 if (rc) in create_storage_attributes()
491 if (rc) in create_storage_attributes()
496 if (rc) in create_storage_attributes()
510 if (rc) in create_genkey_attributes()
520 if (rc) in create_genkey_attributes()
525 if (rc) in create_genkey_attributes()
530 if (rc) in create_genkey_attributes()
546 if (rc) in create_symm_key_attributes()
[all …]
A Dsanitize_object.c86 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 Dpkcs11_token.c327 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 Dprocessing_asymm.c143 return rc; in pkcs2tee_algorithm()
289 if (rc) in load_tee_key()
290 return rc; in load_tee_key()
306 if (rc) in load_tee_key()
307 return rc; in load_tee_key()
361 if (rc) in init_tee_operation()
373 return rc; in init_tee_operation()
386 if (rc) in init_asymm_operation()
387 return rc; in init_asymm_operation()
390 if (rc) in init_asymm_operation()
[all …]
A Dserializer.c33 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 Dprocessing_symm.c283 if (rc) in hash_secret_helper()
294 if (rc) { in hash_secret_helper()
354 if (rc) in load_tee_key()
365 if (rc) in load_tee_key()
380 if (rc) in load_tee_key()
442 if (rc) in tee_init_derive_symm()
450 if (rc) in tee_init_derive_symm()
454 if (rc) in tee_init_derive_symm()
623 if (rc) in init_symm_operation()
627 if (rc) in init_symm_operation()
[all …]
A Dattributes.c41 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 Dprocessing_ec.c354 rc = PKCS11_CKR_OK; in load_tee_ec_key_attrs()
384 rc = PKCS11_CKR_OK; in load_tee_ec_key_attrs()
393 if (rc == PKCS11_CKR_OK) { in load_tee_ec_key_attrs()
400 return rc; in load_tee_ec_key_attrs()
466 if (rc) in tee2pkcs_ec_attributes()
471 if (rc) in tee2pkcs_ec_attributes()
476 if (rc) in tee2pkcs_ec_attributes()
539 if (rc) in tee2pkcs_ec_attributes()
551 return rc; in tee2pkcs_ec_attributes()
615 if (rc) in generate_ec_keys()
[all …]
A Dprocessing_aes.c21 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 Dprocessing_digest.c110 enum pkcs11_rc rc = PKCS11_CKR_GENERAL_ERROR; in step_digest_operation() local
171 rc = get_attribute_ptr(obj->attributes, PKCS11_CKA_VALUE, in step_digest_operation()
173 assert(!rc && secret_value && secret_value_size); in step_digest_operation()
207 rc = tee2pkcs_error(res); in step_digest_operation()
209 if (rc == PKCS11_CKR_OK || rc == PKCS11_CKR_BUFFER_TOO_SMALL) in step_digest_operation()
212 return rc; in step_digest_operation()
A Dpersistent_token.c110 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/core/arch/arm/kernel/
A Dthread_spmc.c194 int rc = 0; in spmc_handle_rxtx_map() local
229 if (rc) in spmc_handle_rxtx_map()
232 if (rc) { in spmc_handle_rxtx_map()
284 rc = 0; in spmc_handle_rxtx_unmap()
294 int rc = 0; in spmc_handle_rx_release() local
303 rc = 0; in spmc_handle_rx_release()
434 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/core/drivers/
A Dstm32_rng.c83 TEE_Result rc = TEE_ERROR_SECURITY; in stm32_rng_read_raw() local
115 rc = TEE_SUCCESS; in stm32_rng_read_raw()
124 return rc; in stm32_rng_read_raw()
152 TEE_Result rc = 0; in stm32_rng_read() local
171 rc = stm32_rng_read_raw(rng_base, out_ptr, &sz); in stm32_rng_read()
175 if (rc) in stm32_rng_read()
184 if (rc) in stm32_rng_read()
187 return rc; in stm32_rng_read()
A Dstm32_i2c.c620 if (rc) { in i2c_setup_timing()
632 if (rc) { in i2c_setup_timing()
772 if (rc) in stm32_i2c_init()
833 if (rc) in stm32_i2c_init()
838 return rc; in stm32_i2c_init()
1175 rc = 0; in i2c_write()
1180 return rc; in i2c_write()
1278 rc = 0; in stm32_i2c_read_write_membyte()
1283 return rc; in stm32_i2c_read_write_membyte()
1388 rc = 0; in i2c_read()
[all …]
/optee_os/core/arch/arm/plat-stm32mp1/pm/
A Dpsci.c151 int rc = 0; in psci_cpu_on() local
163 rc = PSCI_RET_ALREADY_ON; in psci_cpu_on()
166 rc = PSCI_RET_ON_PENDING; in psci_cpu_on()
169 rc = PSCI_RET_DENIED; in psci_cpu_on()
173 rc = PSCI_RET_SUCCESS; in psci_cpu_on()
181 if (rc == PSCI_RET_SUCCESS) { in psci_cpu_on()
186 return rc; in psci_cpu_on()
/optee_os/core/arch/arm/plat-stm32mp1/
A Dstm32_util.h171 int rc = !*refcnt; in incr_shrefcnt() local
182 return rc; in incr_shrefcnt()
188 int rc = 0; in decr_shrefcnt() local
196 rc = !*refcnt; in decr_shrefcnt()
199 rc = (*refcnt == SHREFCNT_NONSECURE_FLAG); in decr_shrefcnt()
203 return rc; in decr_shrefcnt()
/optee_os/core/arch/arm/include/kernel/
A Dspinlock.h81 unsigned int rc; in cpu_spin_trylock() local
84 rc = __cpu_spin_trylock(lock); in cpu_spin_trylock()
85 if (!rc) in cpu_spin_trylock()
87 return !rc; in cpu_spin_trylock()
/optee_os/core/drivers/bnxt/
A Dbnxt_fw.c427 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 …]
/optee_os/lib/libutee/
A Dtee_api_arith_mpi.c219 int32_t rc; in TEE_BigIntCmp() local
229 return rc; in TEE_BigIntCmp()
235 int32_t rc; in TEE_BigIntCmpS32() local
243 return rc; in TEE_BigIntCmpS32()
289 bool rc; in TEE_BigIntGetBit() local
298 return rc; in TEE_BigIntGetBit()
312 return rc; in TEE_BigIntGetBitCount()
563 bool rc; in TEE_BigIntRelativePrime() local
587 return rc; in TEE_BigIntRelativePrime()
765 int rc; in TEE_BigIntIsProbablePrime() local
[all …]
/optee_os/core/arch/arm/crypto/
A Dsha256_armv8a_ce_a64.S28 .macro add_only, ev, rc, s0
31 add t1.4s, v\s0\().4s, \rc\().4s
36 add t0.4s, v\s0\().4s, \rc\().4s
43 .macro add_update, ev, rc, s0, s1, s2, s3
45 add_only \ev, \rc, \s1
A Dsha1_armv8a_ce_a64.S33 .macro add_only, op, ev, rc, s0, dg1
35 add t1.4s, v\s0\().4s, \rc\().4s
44 add t0.4s, v\s0\().4s, \rc\().4s
51 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
53 add_only \op, \ev, \rc, \s1, \dg1

Completed in 48 milliseconds

12