| /optee_os/lib/libutee/include/ |
| H A D | utee_defines.h | 64 static inline uint32_t __tee_alg_get_class(uint32_t algo) in __tee_alg_get_class() 84 #define TEE_ALG_GET_CLASS(algo) __tee_alg_get_class(algo) argument 86 static inline uint32_t __tee_alg_get_main_alg(uint32_t algo) in __tee_alg_get_main_alg() 118 #define TEE_ALG_GET_MAIN_ALG(algo) __tee_alg_get_main_alg(algo) argument 121 #define TEE_ALG_GET_CHAIN_MODE(algo) (((algo) >> 8) & 0xF) argument 131 static inline uint32_t __tee_alg_get_digest_hash(uint32_t algo) in __tee_alg_get_digest_hash() 140 #define TEE_ALG_GET_DIGEST_HASH(algo) __tee_alg_get_digest_hash(algo) argument 143 #define TEE_ALG_GET_INTERNAL_HASH(algo) (((algo) >> 20) & 0x7) argument 145 static inline uint32_t __tee_alg_get_key_type(uint32_t algo, bool with_priv) in __tee_alg_get_key_type() 155 #define TEE_ALG_GET_KEY_TYPE(algo, with_private_key) \ argument [all …]
|
| H A D | remoteproc_pta.h | 34 uint32_t algo; member
|
| /optee_os/core/tee/ |
| H A D | tee_cryp_utl.c | 19 TEE_Result tee_alg_get_digest_size(uint32_t algo, size_t *size) in tee_alg_get_digest_size() 31 TEE_Result tee_hash_createdigest(uint32_t algo, const uint8_t *data, in tee_hash_createdigest() 59 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/ |
| H A D | aes_perf.c | 42 static void free_ctx(void **ctx, uint32_t algo) in free_ctx() 52 static TEE_Result init_ctx(void **ctx, uint32_t algo, TEE_OperationMode mode, in init_ctx() 129 static TEE_Result do_update(void *ctx, uint32_t algo, TEE_OperationMode mode, in do_update() 172 uint32_t algo = 0; in core_aes_perf_tests() local
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | ecc.c | 37 static bool oefid_algo_supported(uint32_t algo) in oefid_algo_supported() 55 static uint32_t algo_tee2se050(uint32_t algo) in algo_tee2se050() 134 static TEE_Result ecc_get_key_size(uint32_t curve, uint32_t algo, in ecc_get_key_size() 171 static TEE_Result ecc_prepare_msg(uint32_t algo, const uint8_t *msg, in ecc_prepare_msg() 175 uint32_t algo; in ecc_prepare_msg() member 399 static TEE_Result verify_fallback(uint32_t algo, struct ecc_public_key *key, in verify_fallback() 410 static TEE_Result sign_fallback(uint32_t algo, struct ecc_keypair *key, in sign_fallback() 489 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign() 566 static TEE_Result verify(uint32_t algo, struct ecc_public_key *key, in verify()
|
| H A D | rsa.c | 64 static uint32_t tee2se050(uint32_t algo) in tee2se050() 233 static TEE_Result decrypt_es(uint32_t algo, struct rsa_keypair *key, in decrypt_es() 288 static TEE_Result encrypt_es(uint32_t algo, struct rsa_public_key *key, in encrypt_es() 447 static TEE_Result sign_ssa(uint32_t algo, struct rsa_keypair *key, in sign_ssa() 486 static TEE_Result verify_ssa(uint32_t algo, struct rsa_public_key *key, in verify_ssa()
|
| H A D | cipher.c | 60 static TEE_Result do_allocate(void **ctx, uint32_t algo) in do_allocate()
|
| /optee_os/core/lib/libtomcrypt/ |
| H 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()
|
| H A D | rsa.c | 29 static TEE_Result tee_algo_to_ltc_hashindex(uint32_t algo, int *ltc_hashindex) in tee_algo_to_ltc_hashindex() 335 TEE_Result sw_crypto_acipher_rsaes_decrypt(uint32_t algo, in sw_crypto_acipher_rsaes_decrypt() 454 TEE_Result sw_crypto_acipher_rsaes_encrypt(uint32_t algo, in sw_crypto_acipher_rsaes_encrypt() 529 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() 628 TEE_Result sw_crypto_acipher_rsassa_verify(uint32_t algo, in sw_crypto_acipher_rsassa_verify()
|
| H 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()
|
| H 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/caam/include/ |
| H A D | caam_desc_helper.h | 304 #define HASH_INIT(algo) \ argument 310 #define HASH_UPDATE(algo) \ argument 317 #define HASH_FINAL(algo) \ argument 323 #define HASH_INITFINAL(algo) \ argument 330 #define HMAC_INIT_DECRYPT(algo) \ argument 337 #define HMAC_INITFINAL_PRECOMP(algo) \ argument 344 #define HMAC_INIT_PRECOMP(algo) \ argument 351 #define HMAC_FINAL_PRECOMP(algo) \ argument 358 #define CIPHER_INITFINAL(algo, encrypt) \ argument 365 #define CIPHER_INIT(algo, encrypt) \ argument [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/oid/ |
| H 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/crypto_api/hash/ |
| H A D | hash.c | 12 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/ |
| H 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/crypto_api/acipher/ |
| H A D | rsa.c | 200 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 268 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo, in crypto_acipher_rsaes_encrypt() 361 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() 442 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo, in crypto_acipher_rsassa_verify()
|
| H 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()
|
| H A D | ecc.c | 72 static bool algo_is_valid(uint32_t curve, uint32_t algo) in algo_is_valid() 161 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign() 233 static TEE_Result ecc_verify(uint32_t algo, struct ecc_public_key *key, in ecc_verify()
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | cipher.c | 24 enum stm32_cryp_algo_mode algo; member 29 enum stm32_saes_chaining_mode algo; member 239 static TEE_Result alloc_cryp_ctx(void **ctx, enum stm32_cryp_algo_mode algo) in alloc_cryp_ctx() 254 static TEE_Result stm32_cryp_cipher_allocate(void **ctx, uint32_t algo) in stm32_cryp_cipher_allocate() 286 static TEE_Result stm32_saes_cipher_allocate(void **ctx, uint32_t algo) in stm32_saes_cipher_allocate()
|
| H A D | ecc.c | 16 static TEE_Result algo_to_pka_cid(uint32_t algo, in algo_to_pka_cid() 145 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign() 221 static TEE_Result verify(uint32_t algo, struct ecc_public_key *key, in verify()
|
| H A D | authenc.c | 28 enum stm32_cryp_algo_mode algo; member 322 static TEE_Result alloc_ctx(void **ctx, enum stm32_cryp_algo_mode algo) in alloc_ctx() 341 static TEE_Result stm32_ae_allocate(void **ctx, uint32_t algo) in stm32_ae_allocate()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | rsa.c | 41 static uint32_t tee_algo_to_mbedtls_hash_algo(uint32_t algo) in tee_algo_to_mbedtls_hash_algo() 463 TEE_Result sw_crypto_acipher_rsaes_decrypt(uint32_t algo, in sw_crypto_acipher_rsaes_decrypt() 571 TEE_Result sw_crypto_acipher_rsaes_encrypt(uint32_t algo, in sw_crypto_acipher_rsaes_encrypt() 658 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() 761 TEE_Result sw_crypto_acipher_rsassa_verify(uint32_t algo, in sw_crypto_acipher_rsassa_verify()
|
| H A D | ecc.c | 47 static TEE_Result ecc_get_keysize(uint32_t curve, uint32_t algo, in ecc_get_keysize() 164 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/core/drivers/crypto/hisilicon/ |
| H A D | sec_hash.c | 65 static uint32_t sec_digest_get_alg_type(uint32_t algo) in sec_digest_get_alg_type() 565 TEE_Result hisi_sec_hash_ctx_init(struct hashctx *hash_ctx, uint32_t algo) in hisi_sec_hash_ctx_init() 600 uint32_t algo) in sec_hash_ctx_allocate()
|
| /optee_os/core/drivers/crypto/versal/ |
| H A D | ecc.c | 125 static TEE_Result ecc_prepare_msg(uint32_t algo, const uint8_t *msg, in ecc_prepare_msg() 146 static TEE_Result verify(uint32_t algo, struct ecc_public_key *key, in verify() 226 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign()
|