/optee_os/core/include/crypto/ |
A D | crypto_impl.h | 359 uint32_t key_type, 362 uint32_t key_type, 367 uint32_t key_type __unused, in crypto_asym_alloc_ecc_public_key() 375 uint32_t key_type __unused, in crypto_asym_alloc_ecc_keypair() 384 uint32_t key_type, 387 uint32_t key_type, 392 uint32_t key_type __unused, in drvcrypt_asym_alloc_ecc_public_key() 400 uint32_t key_type __unused, in drvcrypt_asym_alloc_ecc_keypair()
|
A D | crypto.h | 188 uint32_t key_type, 191 uint32_t key_type,
|
/optee_os/ta/pkcs11/src/ |
A D | processing_digest.c | 118 enum pkcs11_key_type key_type = PKCS11_CKK_UNDEFINED_ID; in step_digest_operation() local 165 key_type = get_key_type(obj->attributes); in step_digest_operation() 167 if (key_type != PKCS11_CKK_GENERIC_SECRET && in step_digest_operation() 168 key_type != PKCS11_CKK_AES) in step_digest_operation()
|
A D | pkcs11_attributes.c | 1421 switch (key_type) { in get_key_min_max_sizes() 1453 TEE_Panic(key_type); in get_key_min_max_sizes() 1659 key_type == PKCS11_CKK_AES) in check_parent_attrs_against_processing() 1675 key_type != PKCS11_CKK_AES) in check_parent_attrs_against_processing() 1711 if (key_type == PKCS11_CKK_MD5_HMAC) in check_parent_attrs_against_processing() 1716 if (key_type == PKCS11_CKK_SHA_1_HMAC) in check_parent_attrs_against_processing() 1721 if (key_type == PKCS11_CKK_SHA224_HMAC) in check_parent_attrs_against_processing() 1750 if (key_type != PKCS11_CKK_EC) { in check_parent_attrs_against_processing() 1752 id2str_type(key_type, key_class), in check_parent_attrs_against_processing() 1779 if (key_type != PKCS11_CKK_RSA) { in check_parent_attrs_against_processing() [all …]
|
A D | pkcs11_helpers.c | 475 enum pkcs11_key_type key_type = id; in key_type_is_symm_key() local 477 switch (key_type) { in key_type_is_symm_key() 494 enum pkcs11_key_type key_type = id; in key_type_is_asymm_key() local 496 switch (key_type) { in key_type_is_asymm_key() 763 enum pkcs11_key_type key_type = id; in id2str_type() local 769 return id2str_key_type(key_type); in id2str_type()
|
A D | processing_asymm.c | 261 assert((obj->key_type == TEE_TYPE_RSA_PUBLIC_KEY && in load_tee_key() 263 (obj->key_type == TEE_TYPE_RSA_KEYPAIR && in load_tee_key() 268 switch (obj->key_type) { in load_tee_key() 288 rc = pkcs2tee_key_type(&obj->key_type, obj, function); in load_tee_key() 309 res = TEE_AllocateTransientObject(obj->key_type, object_size, in load_tee_key()
|
A D | processing_symm.c | 107 enum pkcs11_key_type key_type; in pkcs2tee_key_type() member 120 enum pkcs11_key_type key_type = get_key_type(obj->attributes); in pkcs2tee_key_type() local 125 if (pkcs2tee_key_type[n].key_type == key_type) { in pkcs2tee_key_type() 314 enum pkcs11_key_type key_type = 0; in load_tee_key() local 342 key_type = get_key_type(obj->attributes); in load_tee_key() 348 if (key_type == PKCS11_CKK_GENERIC_SECRET) in load_tee_key()
|
A D | object.h | 31 uint32_t key_type; member
|
/optee_os/core/arch/arm/kernel/ |
A D | otp_stubs.c | 44 __weak TEE_Result tee_otp_get_ta_enc_key(uint32_t key_type __maybe_unused, in tee_otp_get_ta_enc_key() 47 assert(key_type == SHDR_ENC_KEY_DEV_SPECIFIC); in tee_otp_get_ta_enc_key()
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | utee_defines.h | 114 uint32_t key_type = 0xA0000000 | TEE_ALG_GET_MAIN_ALG(algo); in __tee_alg_get_key_type() local 117 key_type |= 0x01000000; in __tee_alg_get_key_type() 119 return key_type; in __tee_alg_get_key_type()
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | utee_defines.h | 114 uint32_t key_type = 0xA0000000 | TEE_ALG_GET_MAIN_ALG(algo); in __tee_alg_get_key_type() local 117 key_type |= 0x01000000; in __tee_alg_get_key_type() 119 return key_type; in __tee_alg_get_key_type()
|
/optee_os/lib/libutee/include/ |
A D | utee_defines.h | 114 uint32_t key_type = 0xA0000000 | TEE_ALG_GET_MAIN_ALG(algo); in __tee_alg_get_key_type() local 117 key_type |= 0x01000000; in __tee_alg_get_key_type() 119 return key_type; in __tee_alg_get_key_type()
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | utee_defines.h | 114 uint32_t key_type = 0xA0000000 | TEE_ALG_GET_MAIN_ALG(algo); in __tee_alg_get_key_type() local 117 key_type |= 0x01000000; in __tee_alg_get_key_type() 119 return key_type; in __tee_alg_get_key_type()
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | utee_defines.h | 114 uint32_t key_type = 0xA0000000 | TEE_ALG_GET_MAIN_ALG(algo); in __tee_alg_get_key_type() local 117 key_type |= 0x01000000; in __tee_alg_get_key_type() 119 return key_type; in __tee_alg_get_key_type()
|
/optee_os/lib/libmbedtls/core/ |
A D | ecc.c | 369 uint32_t key_type, in crypto_asym_alloc_ecc_keypair() argument 374 switch (key_type) { in crypto_asym_alloc_ecc_keypair() 440 uint32_t key_type, in crypto_asym_alloc_ecc_public_key() argument 445 switch (key_type) { in crypto_asym_alloc_ecc_public_key()
|
/optee_os/core/lib/libtomcrypt/ |
A D | ecc.c | 392 uint32_t key_type, in crypto_asym_alloc_ecc_keypair() argument 397 switch (key_type) { in crypto_asym_alloc_ecc_keypair() 443 uint32_t key_type, in crypto_asym_alloc_ecc_public_key() argument 448 switch (key_type) { in crypto_asym_alloc_ecc_public_key()
|
/optee_os/core/include/kernel/ |
A D | tee_common_otp.h | 20 TEE_Result tee_otp_get_ta_enc_key(uint32_t key_type, uint8_t *buffer,
|
/optee_os/core/crypto/ |
A D | crypto.c | 677 uint32_t key_type, in crypto_acipher_alloc_ecc_public_key() argument 686 res = drvcrypt_asym_alloc_ecc_public_key(key, key_type, key_size_bits); in crypto_acipher_alloc_ecc_public_key() 688 res = crypto_asym_alloc_ecc_public_key(key, key_type, in crypto_acipher_alloc_ecc_public_key() 695 uint32_t key_type, in crypto_acipher_alloc_ecc_keypair() argument 704 res = drvcrypt_asym_alloc_ecc_keypair(key, key_type, key_size_bits); in crypto_acipher_alloc_ecc_keypair() 706 res = crypto_asym_alloc_ecc_keypair(key, key_type, in crypto_acipher_alloc_ecc_keypair()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pkwrite.c | 267 psa_key_type_t key_type; in mbedtls_pk_write_pubkey_der() local 275 key_type = psa_get_key_type( &attributes ); in mbedtls_pk_write_pubkey_der() 279 curve = PSA_KEY_TYPE_ECC_GET_FAMILY( key_type ); in mbedtls_pk_write_pubkey_der()
|
A D | pk.c | 608 psa_key_type_t key_type; in mbedtls_pk_wrap_as_opaque() 622 key_type = PSA_KEY_TYPE_ECC_KEY_PAIR( curve_id ); in mbedtls_pk_wrap_as_opaque() 625 psa_set_key_type( &attributes, key_type ); in mbedtls_pk_wrap_as_opaque()
|
A D | cipher.c | 333 psa_key_type_t key_type; in mbedtls_cipher_setkey() local 344 key_type = mbedtls_psa_translate_cipher_type( in mbedtls_cipher_setkey() 346 if( key_type == 0 ) in mbedtls_cipher_setkey() 348 psa_set_key_type( &attributes, key_type ); in mbedtls_cipher_setkey()
|
/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 306 TEE_ObjectType key_type = TEE_ALG_GET_KEY_TYPE(algorithm, in TEE_AllocateOperation() local 316 res = TEE_AllocateTransientObject(key_type, mks, &op->key1); in TEE_AllocateOperation() 321 res = TEE_AllocateTransientObject(key_type, mks, in TEE_AllocateOperation()
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 3008 uint32_t key_type = TEE_TYPE_ECDH_PUBLIC_KEY; in syscall_cryp_derive_key() local 3039 res = crypto_acipher_alloc_ecc_public_key(&key_public, key_type, in syscall_cryp_derive_key()
|