| /optee_os/ta/pkcs11/src/ |
| H A D | processing_rsa.c | 117 enum pkcs11_rc pkcs2tee_algo_rsa_pss(uint32_t *tee_id, in pkcs2tee_algo_rsa_pss() argument 145 *tee_id = TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA1; in pkcs2tee_algo_rsa_pss() 150 *tee_id = TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA224; in pkcs2tee_algo_rsa_pss() 155 *tee_id = TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256; in pkcs2tee_algo_rsa_pss() 160 *tee_id = TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384; in pkcs2tee_algo_rsa_pss() 165 *tee_id = TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512; in pkcs2tee_algo_rsa_pss() 171 switch (*tee_id) { in pkcs2tee_algo_rsa_pss() 323 pkcs2tee_algo_rsa_oaep(uint32_t *tee_id, uint32_t *tee_hash_id, in pkcs2tee_algo_rsa_oaep() argument 368 *tee_id = TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1; in pkcs2tee_algo_rsa_oaep() 374 *tee_id = TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA224; in pkcs2tee_algo_rsa_oaep() [all …]
|
| H A D | processing_ec.c | 270 uint32_t tee_id; member 277 .tee_id = (_tee_id), \ 337 return curve->tee_id; in ec_params2tee_curve() 436 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id, in pkcs2tee_algo_ecdsa() argument 458 *tee_id = TEE_ALG_ECDSA_P192; in pkcs2tee_algo_ecdsa() 461 *tee_id = TEE_ALG_ECDSA_P224; in pkcs2tee_algo_ecdsa() 464 *tee_id = TEE_ALG_ECDSA_P256; in pkcs2tee_algo_ecdsa() 467 *tee_id = TEE_ALG_ECDSA_P384; in pkcs2tee_algo_ecdsa() 470 *tee_id = TEE_ALG_ECDSA_P521; in pkcs2tee_algo_ecdsa() 923 enum pkcs11_rc pkcs2tee_algo_ecdh(uint32_t *tee_id, in pkcs2tee_algo_ecdh() argument [all …]
|
| H A D | pkcs11_helpers.c | 550 bool pkcs2tee_load_attr(TEE_Attribute *tee_ref, uint32_t tee_id, in pkcs2tee_load_attr() argument 561 switch (tee_id) { in pkcs2tee_load_attr() 571 if (tee_id == TEE_ATTR_ECC_CURVE) { in pkcs2tee_load_attr() 637 if (tee_id == TEE_ATTR_ECC_PUBLIC_VALUE_X) in pkcs2tee_load_attr() 638 TEE_InitRefAttribute(tee_ref, tee_id, in pkcs2tee_load_attr() 641 TEE_InitRefAttribute(tee_ref, tee_id, in pkcs2tee_load_attr() 654 TEE_InitRefAttribute(tee_ref, tee_id, a_ptr, a_size); in pkcs2tee_load_attr() 664 uint32_t tee_id, in pkcs2tee_load_hashed_attr() argument 696 TEE_InitRefAttribute(tee_ref, tee_id, hash_ptr, *hash_size); in pkcs2tee_load_hashed_attr() 702 void pkcs2tee_mode(uint32_t *tee_id, enum processing_func function) in pkcs2tee_mode() argument [all …]
|
| H A D | pkcs11_helpers.h | 62 void pkcs2tee_mode(uint32_t *tee_id, enum processing_func function); 65 bool pkcs2tee_load_attr(TEE_Attribute *tee_ref, uint32_t tee_id, 71 uint32_t tee_id,
|
| H A D | processing.h | 124 uint32_t tee_id); 219 enum pkcs11_rc pkcs2tee_algo_ecdsa(uint32_t *tee_id, 247 enum pkcs11_rc pkcs2tee_algo_rsa_pss(uint32_t *tee_id, 262 enum pkcs11_rc pkcs2tee_algo_rsa_oaep(uint32_t *tee_id, uint32_t *tee_hash_id, 266 pkcs2tee_algo_rsa_aes_wrap(uint32_t *tee_id, uint32_t *tee_hash_id, 282 enum pkcs11_rc pkcs2tee_algo_ecdh(uint32_t *tee_id,
|
| H A D | processing_digest.c | 40 pkcs2tee_algorithm(uint32_t *tee_id, struct pkcs11_attribute_head *proc_params) in pkcs2tee_algorithm() argument 44 uint32_t tee_id; in pkcs2tee_algorithm() member 57 *tee_id = pkcs2tee_algo[n].tee_id; in pkcs2tee_algorithm()
|
| H A D | processing_asymm.c | 56 pkcs2tee_algorithm(uint32_t *tee_id, uint32_t *tee_hash_id, in pkcs2tee_algorithm() argument 63 uint32_t tee_id; in pkcs2tee_algorithm() member 109 *tee_id = pkcs2tee_algo[n].tee_id; in pkcs2tee_algorithm() 125 rc = pkcs2tee_algo_rsa_pss(tee_id, proc_params); in pkcs2tee_algorithm() 128 rc = pkcs2tee_algo_rsa_oaep(tee_id, tee_hash_id, proc_params); in pkcs2tee_algorithm() 131 rc = pkcs2tee_algo_rsa_aes_wrap(tee_id, tee_hash_id, in pkcs2tee_algorithm() 140 rc = pkcs2tee_algo_ecdsa(tee_id, proc_params, obj); in pkcs2tee_algorithm() 143 rc = pkcs2tee_algo_ecdh(tee_id, proc_params, obj); in pkcs2tee_algorithm() 155 if (*tee_id == TEE_ALG_RSAES_PKCS1_V1_5 && in pkcs2tee_algorithm() 158 *tee_id = TEE_ALG_RSASSA_PKCS1_V1_5; in pkcs2tee_algorithm()
|
| H A D | processing_symm.c | 61 pkcs2tee_algorithm(uint32_t *tee_id, struct pkcs11_attribute_head *proc_params) in pkcs2tee_algorithm() argument 65 uint32_t tee_id; in pkcs2tee_algorithm() member 95 *tee_id = pkcs2tee_algo[n].tee_id; in pkcs2tee_algorithm() 108 uint32_t tee_id; in pkcs2tee_key_type() member 126 *tee_type = pkcs2tee_key_type[n].tee_id; in pkcs2tee_key_type() 139 uint32_t tee_id; in pkcsmech2tee_key_type() member 158 *tee_type = pkcs2tee_key_type[n].tee_id; in pkcsmech2tee_key_type() 171 uint32_t tee_id; in hmac_to_tee_hash() member 190 *algo = hmac_hash[n].tee_id; in hmac_to_tee_hash()
|
| H A D | processing.c | 376 uint32_t tee_id) in tee2pkcs_add_attribute() argument 382 rc = alloc_get_tee_attribute_data(tee_obj, tee_id, &a_ptr, &a_size); in tee2pkcs_add_attribute() 393 tee_id, pkcs11_id, id2str_attr(pkcs11_id)); in tee2pkcs_add_attribute()
|