/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 110 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 122 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 137 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 141 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument [all …]
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 110 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 122 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 137 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 141 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument [all …]
|
/optee_os/lib/libutee/include/ |
A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 110 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 122 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 137 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 141 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument [all …]
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 110 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 122 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 137 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 141 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument [all …]
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | utee_defines.h | 55 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 69 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 71 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 85 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 88 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 98 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 110 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 122 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument 137 #define TEE_INTERNAL_HASH_TO_ALGO(algo) \ argument 141 #define TEE_DIGEST_HASH_TO_ALGO(algo) \ argument [all …]
|
/optee_os/core/tee/ |
A D | tee_cryp_utl.c | 20 TEE_Result tee_alg_get_digest_size(uint32_t algo, size_t *size) in tee_alg_get_digest_size() 32 TEE_Result tee_hash_createdigest(uint32_t algo, const uint8_t *data, in tee_hash_createdigest() 60 TEE_Result tee_cipher_get_block_size(uint32_t algo, size_t *size) in tee_cipher_get_block_size() 98 TEE_Result tee_do_cipher_update(void *ctx, uint32_t algo, in tee_do_cipher_update()
|
/optee_os/core/pta/tests/ |
A D | aes_perf.c | 43 static void free_ctx(void **ctx, uint32_t algo) in free_ctx() 53 static TEE_Result init_ctx(void **ctx, uint32_t algo, TEE_OperationMode mode, in init_ctx() 130 static TEE_Result do_update(void *ctx, uint32_t algo, TEE_OperationMode mode, in do_update() 173 uint32_t algo = 0; in core_aes_perf_tests() local
|
/optee_os/core/drivers/crypto/stm32/ |
A D | cipher.c | 25 enum stm32_cryp_algo_mode algo; member 91 static TEE_Result alloc_ctx(void **ctx, enum stm32_cryp_algo_mode algo) in alloc_ctx() 110 static TEE_Result stm32_cipher_allocate(void **ctx, uint32_t algo) in stm32_cipher_allocate()
|
A D | authenc.c | 32 enum stm32_cryp_algo_mode algo; member 326 static TEE_Result alloc_ctx(void **ctx, enum stm32_cryp_algo_mode algo) in alloc_ctx() 345 static TEE_Result stm32_ae_allocate(void **ctx, uint32_t algo) in stm32_ae_allocate()
|
/optee_os/core/drivers/crypto/crypto_api/oid/ |
A D | hash_oid.c | 32 const struct drvcrypt_oid *drvcrypt_get_alg_hash_oid(uint32_t algo) in drvcrypt_get_alg_hash_oid()
|
/optee_os/core/drivers/crypto/caam/include/ |
A D | caam_desc_helper.h | 286 #define HASH_INIT(algo) \ argument 292 #define HASH_UPDATE(algo) \ argument 299 #define HASH_FINAL(algo) \ argument 305 #define HASH_INITFINAL(algo) \ argument 312 #define HMAC_INIT_DECRYPT(algo) \ argument 319 #define HMAC_INITFINAL_PRECOMP(algo) \ argument 326 #define HMAC_INIT_PRECOMP(algo) \ argument 333 #define HMAC_FINAL_PRECOMP(algo) \ argument 340 #define CIPHER_INITFINAL(algo, encrypt) \ argument 347 #define CIPHER_INIT(algo, encrypt) \ argument [all …]
|
/optee_os/core/lib/libtomcrypt/ |
A D | ecc.c | 31 static TEE_Result ecc_get_curve_info(uint32_t curve, uint32_t algo, in ecc_get_curve_info() 190 uint32_t algo, size_t *key_size_bytes) in ecc_populate_ltc_private_key() 220 uint32_t algo, size_t *key_size_bytes) in ecc_populate_ltc_public_key() 245 static TEE_Result _ltc_ecc_sign(uint32_t algo, struct ecc_keypair *key, in _ltc_ecc_sign() 284 static TEE_Result _ltc_ecc_verify(uint32_t algo, struct ecc_public_key *key, in _ltc_ecc_verify()
|
A D | rsa.c | 26 static TEE_Result tee_algo_to_ltc_hashindex(uint32_t algo, int *ltc_hashindex) in tee_algo_to_ltc_hashindex() 279 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 375 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() 432 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() 523 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify()
|
A D | sm2-dsa.c | 21 TEE_Result sm2_ltc_dsa_sign(uint32_t algo, struct ecc_keypair *key, in sm2_ltc_dsa_sign() 139 TEE_Result sm2_ltc_dsa_verify(uint32_t algo, struct ecc_public_key *key, in sm2_ltc_dsa_verify()
|
A D | dsa.c | 95 TEE_Result crypto_acipher_dsa_sign(uint32_t algo, struct dsa_keypair *key, in crypto_acipher_dsa_sign() 164 TEE_Result crypto_acipher_dsa_verify(uint32_t algo, struct dsa_public_key *key, in crypto_acipher_dsa_verify()
|
/optee_os/core/drivers/crypto/crypto_api/hash/ |
A D | hash.c | 13 TEE_Result drvcrypt_hash_alloc_ctx(struct crypto_hash_ctx **ctx, uint32_t algo) in drvcrypt_hash_alloc_ctx()
|
/optee_os/core/drivers/crypto/crypto_api/mac/ |
A D | mac.c | 13 TEE_Result drvcrypt_mac_alloc_ctx(struct crypto_mac_ctx **ctx, uint32_t algo) in drvcrypt_mac_alloc_ctx()
|
/optee_os/core/drivers/crypto/se050/core/ |
A D | ecc.c | 21 static uint32_t algo_tee2se050(uint32_t algo) in algo_tee2se050() 100 static TEE_Result ecc_get_key_size(uint32_t curve, uint32_t algo, in ecc_get_key_size() 150 static TEE_Result ecc_prepare_msg(uint32_t algo, const uint8_t *msg, in ecc_prepare_msg() 154 uint32_t algo; in ecc_prepare_msg() member 408 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign() 481 static TEE_Result verify(uint32_t algo, struct ecc_public_key *key, in verify()
|
A D | rsa.c | 19 static uint32_t tee2se050(uint32_t algo) in tee2se050() 188 static TEE_Result decrypt_es(uint32_t algo, struct rsa_keypair *key, in decrypt_es() 243 static TEE_Result encrypt_es(uint32_t algo, struct rsa_public_key *key, in encrypt_es() 402 static TEE_Result sign_ssa(uint32_t algo, struct rsa_keypair *key, in sign_ssa() 441 static TEE_Result verify_ssa(uint32_t algo, struct rsa_public_key *key, in verify_ssa()
|
/optee_os/core/drivers/crypto/crypto_api/acipher/ |
A D | rsa.c | 198 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 258 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() 343 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() 424 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify()
|
A D | ecc.c | 48 static bool algo_is_valid(uint32_t curve, uint32_t algo) in algo_is_valid() 131 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign() 203 static TEE_Result ecc_verify(uint32_t algo, struct ecc_public_key *key, in ecc_verify()
|
A D | dsa.c | 121 TEE_Result crypto_acipher_dsa_sign(uint32_t algo, struct dsa_keypair *key, in crypto_acipher_dsa_sign() 181 TEE_Result crypto_acipher_dsa_verify(uint32_t algo, struct dsa_public_key *key, in crypto_acipher_dsa_verify()
|
/optee_os/lib/libmbedtls/core/ |
A D | rsa.c | 38 static uint32_t tee_algo_to_mbedtls_hash_algo(uint32_t algo) in tee_algo_to_mbedtls_hash_algo() 350 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 438 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() 509 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() 596 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify()
|
A D | ecc.c | 51 static TEE_Result ecc_get_keysize(uint32_t curve, uint32_t algo, in ecc_get_keysize() 174 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign() 243 static TEE_Result ecc_verify(uint32_t algo, struct ecc_public_key *key, in ecc_verify()
|
/optee_os/scripts/ |
A D | sign_encrypt.py | 11 algo = {'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256': 0x70414930, variable
|