Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 23 of 23) sorted by relevance

/optee_os/core/include/crypto/
A Dcrypto_impl.h359 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 Dcrypto.h188 uint32_t key_type,
191 uint32_t key_type,
/optee_os/ta/pkcs11/src/
A Dprocessing_digest.c118 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 Dpkcs11_attributes.c1421 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 Dpkcs11_helpers.c475 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 Dprocessing_asymm.c261 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 Dprocessing_symm.c107 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 Dobject.h31 uint32_t key_type; member
/optee_os/core/arch/arm/kernel/
A Dotp_stubs.c44 __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 Dutee_defines.h114 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 Dutee_defines.h114 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 Dutee_defines.h114 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 Dutee_defines.h114 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 Dutee_defines.h114 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 Decc.c369 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 Decc.c392 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 Dtee_common_otp.h20 TEE_Result tee_otp_get_ta_enc_key(uint32_t key_type, uint8_t *buffer,
/optee_os/core/crypto/
A Dcrypto.c677 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 Dpkwrite.c267 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 Dpk.c608 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 Dcipher.c333 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 Dtee_api_operations.c306 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 Dtee_svc_cryp.c3008 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()

Completed in 38 milliseconds