| /optee_os/core/drivers/crypto/stm32/ |
| H A D | stm32_cryp.c | 259 static TEE_Result __must_check write_align_block(struct stm32_cryp_context *ctx, in write_align_block() 277 static TEE_Result __must_check write_block(struct stm32_cryp_context *ctx, in write_block() 290 static TEE_Result __must_check read_align_block(struct stm32_cryp_context *ctx, in read_align_block() 308 static TEE_Result __must_check read_block(struct stm32_cryp_context *ctx, in read_block() 343 static void cryp_end(struct stm32_cryp_context *ctx, TEE_Result prev_error) in cryp_end() 352 static void cryp_write_iv(struct stm32_cryp_context *ctx) in cryp_write_iv() 364 static void cryp_save_suspend(struct stm32_cryp_context *ctx) in cryp_save_suspend() 380 static void cryp_restore_suspend(struct stm32_cryp_context *ctx) in cryp_restore_suspend() 395 static void cryp_write_key(struct stm32_cryp_context *ctx) in cryp_write_key() 413 static TEE_Result cryp_prepare_key(struct stm32_cryp_context *ctx) in cryp_prepare_key() [all …]
|
| H A D | stm32_saes.c | 258 static TEE_Result saes_start(struct stm32_saes_context *ctx) in saes_start() 279 static void saes_end(struct stm32_saes_context *ctx, int prev_error) in saes_end() 291 static void saes_write_iv(struct stm32_saes_context *ctx) in saes_write_iv() 304 static void saes_save_suspend(struct stm32_saes_context *ctx) in saes_save_suspend() 313 static void saes_restore_suspend(struct stm32_saes_context *ctx) in saes_restore_suspend() 322 static void saes_write_key(struct stm32_saes_context *ctx) in saes_write_key() 346 static TEE_Result saes_prepare_key(struct stm32_saes_context *ctx) in saes_prepare_key() 394 static TEE_Result save_context(struct stm32_saes_context *ctx) in save_context() 427 static TEE_Result restore_context(struct stm32_saes_context *ctx) in restore_context() 458 static TEE_Result do_from_init_to_phase(struct stm32_saes_context *ctx, in do_from_init_to_phase() [all …]
|
| /optee_os/ta/remoteproc/src/ |
| H A D | remoteproc_core.c | 273 struct remoteproc_context *ctx = NULL; in remoteproc_find_firmware() local 284 struct remoteproc_context *ctx = NULL; in remoteproc_add_firmware() local 308 static TEE_Result remoteproc_pta_verify(struct remoteproc_context *ctx, in remoteproc_pta_verify() 360 remoteproc_save_fw_header_and_tlvs(struct remoteproc_context *ctx, in remoteproc_save_fw_header_and_tlvs() 388 static TEE_Result remoteproc_verify_signature(struct remoteproc_context *ctx) in remoteproc_verify_signature() 446 static TEE_Result remoteproc_verify_header(struct remoteproc_context *ctx, in remoteproc_verify_header() 472 static TEE_Result get_rproc_pta_capabilities(struct remoteproc_context *ctx) in get_rproc_pta_capabilities() 495 static TEE_Result remoteproc_verify_firmware(struct remoteproc_context *ctx, in remoteproc_verify_firmware() 549 struct remoteproc_context *ctx) in remoteproc_da_to_pa() 585 static TEE_Result remoteproc_parse_rsc_table(struct remoteproc_context *ctx, in remoteproc_parse_rsc_table() [all …]
|
| /optee_os/core/kernel/ |
| H A D | huk_subkey.c | 13 static TEE_Result mac_usage(void *ctx, uint32_t usage) in mac_usage() 37 static TEE_Result huk_compat(void *ctx, enum huk_subkey_usage usage) in huk_compat() 65 void *ctx = NULL; in __huk_subkey_derive() local
|
| H A D | user_ta.c | 266 static void user_ta_dump_state(struct ts_ctx *ctx) in user_ta_dump_state() 289 static void user_ta_dump_ftrace(struct ts_ctx *ctx) in user_ta_dump_ftrace() 406 static void user_ta_release_state(struct ts_ctx *ctx) in user_ta_release_state() 411 static void user_ta_ctx_destroy(struct ts_ctx *ctx) in user_ta_ctx_destroy() 416 static uint32_t user_ta_get_instance_id(struct ts_ctx *ctx) in user_ta_get_instance_id() 445 static void set_ta_ctx_ops(struct tee_ta_ctx *ctx) in set_ta_ctx_ops() 450 bool __noprof is_user_ta_ctx(struct ts_ctx *ctx) in is_user_ta_ctx()
|
| H A D | tee_ta_manager.c | 116 static struct tee_ta_ctx *ts_to_ta_ctx(struct ts_ctx *ctx) in ts_to_ta_ctx() 127 static bool tee_ta_try_set_busy(struct tee_ta_ctx *ctx) in tee_ta_try_set_busy() 166 static void tee_ta_set_busy(struct tee_ta_ctx *ctx) in tee_ta_set_busy() 172 static void tee_ta_clear_busy(struct tee_ta_ctx *ctx) in tee_ta_clear_busy() 324 static void destroy_context(struct tee_ta_ctx *ctx) in destroy_context() 338 struct tee_ta_ctx *ctx; in tee_ta_context_find() local 460 struct tee_ta_ctx *ctx = NULL; in close_session() local 536 struct tee_ta_ctx *ctx = NULL; in tee_ta_init_session_with_context() local 675 static void maybe_release_ta_ctx(struct tee_ta_ctx *ctx) in maybe_release_ta_ctx() 715 struct tee_ta_ctx *ctx = NULL; in tee_ta_open_session() local [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | sha256.c | 225 void mbedtls_sha256_init(mbedtls_sha256_context *ctx) in mbedtls_sha256_init() 230 void mbedtls_sha256_free(mbedtls_sha256_context *ctx) in mbedtls_sha256_free() 248 int mbedtls_sha256_starts(mbedtls_sha256_context *ctx, int is224) in mbedtls_sha256_starts() 330 mbedtls_sha256_context *ctx, const uint8_t *msg, size_t len) in mbedtls_internal_sha256_process_many_a64_crypto() 431 int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ctx, in mbedtls_internal_sha256_process_a64_crypto() 492 int mbedtls_internal_sha256_process_c(mbedtls_sha256_context *ctx, in mbedtls_internal_sha256_process_c() 583 mbedtls_sha256_context *ctx, const uint8_t *data, size_t len) in mbedtls_internal_sha256_process_many_c() 619 static size_t mbedtls_internal_sha256_process_many(mbedtls_sha256_context *ctx, in mbedtls_internal_sha256_process_many() 629 int mbedtls_internal_sha256_process(mbedtls_sha256_context *ctx, in mbedtls_internal_sha256_process() 645 int mbedtls_sha256_update(mbedtls_sha256_context *ctx, in mbedtls_sha256_update() [all …]
|
| H A D | lmots.c | 383 void mbedtls_lmots_public_init(mbedtls_lmots_public_t *ctx) in mbedtls_lmots_public_init() 388 void mbedtls_lmots_public_free(mbedtls_lmots_public_t *ctx) in mbedtls_lmots_public_free() 397 int mbedtls_lmots_import_public_key(mbedtls_lmots_public_t *ctx, in mbedtls_lmots_import_public_key() 431 int mbedtls_lmots_export_public_key(const mbedtls_lmots_public_t *ctx, in mbedtls_lmots_export_public_key() 513 int mbedtls_lmots_verify(const mbedtls_lmots_public_t *ctx, in mbedtls_lmots_verify() 559 void mbedtls_lmots_private_init(mbedtls_lmots_private_t *ctx) in mbedtls_lmots_private_init() 564 void mbedtls_lmots_private_free(mbedtls_lmots_private_t *ctx) in mbedtls_lmots_private_free() 574 int mbedtls_lmots_generate_private_key(mbedtls_lmots_private_t *ctx, in mbedtls_lmots_generate_private_key() 661 int mbedtls_lmots_calculate_public_key(mbedtls_lmots_public_t *ctx, in mbedtls_lmots_calculate_public_key() 697 int mbedtls_lmots_sign(mbedtls_lmots_private_t *ctx, in mbedtls_lmots_sign()
|
| H A D | nist_kw.c | 46 void mbedtls_nist_kw_init(mbedtls_nist_kw_context *ctx) in mbedtls_nist_kw_init() 51 int mbedtls_nist_kw_setkey(mbedtls_nist_kw_context *ctx, in mbedtls_nist_kw_setkey() 103 void mbedtls_nist_kw_free(mbedtls_nist_kw_context *ctx) in mbedtls_nist_kw_free() 129 int mbedtls_nist_kw_wrap(mbedtls_nist_kw_context *ctx, in mbedtls_nist_kw_wrap() 260 static int unwrap(mbedtls_nist_kw_context *ctx, in unwrap() 323 int mbedtls_nist_kw_unwrap(mbedtls_nist_kw_context *ctx, in mbedtls_nist_kw_unwrap() 586 mbedtls_nist_kw_context ctx; in mbedtls_nist_kw_self_test() local
|
| H A D | sha512.c | 221 void mbedtls_sha512_init(mbedtls_sha512_context *ctx) in mbedtls_sha512_init() 226 void mbedtls_sha512_free(mbedtls_sha512_context *ctx) in mbedtls_sha512_free() 244 int mbedtls_sha512_starts(mbedtls_sha512_context *ctx, int is384) in mbedtls_sha512_starts() 382 mbedtls_sha512_context *ctx, const uint8_t *msg, size_t len) in mbedtls_internal_sha512_process_many_a64_crypto() 566 int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ctx, in mbedtls_internal_sha512_process_a64_crypto() 601 int mbedtls_internal_sha512_process_c(mbedtls_sha512_context *ctx, in mbedtls_internal_sha512_process_c() 699 mbedtls_sha512_context *ctx, const uint8_t *data, size_t len) in mbedtls_internal_sha512_process_many_c() 735 static size_t mbedtls_internal_sha512_process_many(mbedtls_sha512_context *ctx, in mbedtls_internal_sha512_process_many() 745 int mbedtls_internal_sha512_process(mbedtls_sha512_context *ctx, in mbedtls_internal_sha512_process() 760 int mbedtls_sha512_update(mbedtls_sha512_context *ctx, in mbedtls_sha512_update() [all …]
|
| H A D | ecdsa.c | 49 static void ecdsa_restart_ver_init(mbedtls_ecdsa_restart_ver_ctx *ctx) in ecdsa_restart_ver_init() 59 static void ecdsa_restart_ver_free(mbedtls_ecdsa_restart_ver_ctx *ctx) in ecdsa_restart_ver_free() 89 static void ecdsa_restart_sig_init(mbedtls_ecdsa_restart_sig_ctx *ctx) in ecdsa_restart_sig_init() 101 static void ecdsa_restart_sig_free(mbedtls_ecdsa_restart_sig_ctx *ctx) in ecdsa_restart_sig_free() 126 static void ecdsa_restart_det_init(mbedtls_ecdsa_restart_det_ctx *ctx) in ecdsa_restart_det_init() 135 static void ecdsa_restart_det_free(mbedtls_ecdsa_restart_det_ctx *ctx) in ecdsa_restart_det_free() 630 int mbedtls_ecdsa_write_signature_restartable(mbedtls_ecdsa_context *ctx, in mbedtls_ecdsa_write_signature_restartable() 679 int mbedtls_ecdsa_write_signature(mbedtls_ecdsa_context *ctx, in mbedtls_ecdsa_write_signature() 694 int mbedtls_ecdsa_read_signature(mbedtls_ecdsa_context *ctx, in mbedtls_ecdsa_read_signature() 705 int mbedtls_ecdsa_read_signature_restartable(mbedtls_ecdsa_context *ctx, in mbedtls_ecdsa_read_signature_restartable() [all …]
|
| H A D | camellia.c | 274 void mbedtls_camellia_init(mbedtls_camellia_context *ctx) in mbedtls_camellia_init() 279 void mbedtls_camellia_free(mbedtls_camellia_context *ctx) in mbedtls_camellia_free() 291 int mbedtls_camellia_setkey_enc(mbedtls_camellia_context *ctx, in mbedtls_camellia_setkey_enc() 403 int mbedtls_camellia_setkey_dec(mbedtls_camellia_context *ctx, in mbedtls_camellia_setkey_dec() 453 int mbedtls_camellia_crypt_ecb(mbedtls_camellia_context *ctx, in mbedtls_camellia_crypt_ecb() 519 int mbedtls_camellia_crypt_cbc(mbedtls_camellia_context *ctx, in mbedtls_camellia_crypt_cbc() 569 int mbedtls_camellia_crypt_cfb128(mbedtls_camellia_context *ctx, in mbedtls_camellia_crypt_cfb128() 622 int mbedtls_camellia_crypt_ctr(mbedtls_camellia_context *ctx, in mbedtls_camellia_crypt_ctr() 879 mbedtls_camellia_context ctx; in mbedtls_camellia_self_test() local
|
| H A D | aria.c | 347 int mbedtls_aria_setkey_enc(mbedtls_aria_context *ctx, in mbedtls_aria_setkey_enc() 409 int mbedtls_aria_setkey_dec(mbedtls_aria_context *ctx, in mbedtls_aria_setkey_dec() 441 int mbedtls_aria_crypt_ecb(mbedtls_aria_context *ctx, in mbedtls_aria_crypt_ecb() 493 void mbedtls_aria_init(mbedtls_aria_context *ctx) in mbedtls_aria_init() 499 void mbedtls_aria_free(mbedtls_aria_context *ctx) in mbedtls_aria_free() 512 int mbedtls_aria_crypt_cbc(mbedtls_aria_context *ctx, in mbedtls_aria_crypt_cbc() 563 int mbedtls_aria_crypt_cfb128(mbedtls_aria_context *ctx, in mbedtls_aria_crypt_cfb128() 620 int mbedtls_aria_crypt_ctr(mbedtls_aria_context *ctx, in mbedtls_aria_crypt_ctr() 815 mbedtls_aria_context ctx; in mbedtls_aria_self_test() local
|
| H A D | aes.c | 492 void mbedtls_aes_init(mbedtls_aes_context *ctx) in mbedtls_aes_init() 497 void mbedtls_aes_free(mbedtls_aes_context *ctx) in mbedtls_aes_free() 507 void mbedtls_aes_xts_init(mbedtls_aes_xts_context *ctx) in mbedtls_aes_xts_init() 513 void mbedtls_aes_xts_free(mbedtls_aes_xts_context *ctx) in mbedtls_aes_xts_free() 576 int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_enc() 687 int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_dec() 782 int mbedtls_aes_xts_setkey_enc(mbedtls_aes_xts_context *ctx, in mbedtls_aes_xts_setkey_enc() 806 int mbedtls_aes_xts_setkey_dec(mbedtls_aes_xts_context *ctx, in mbedtls_aes_xts_setkey_dec() 883 int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx, in mbedtls_internal_aes_encrypt() 945 int mbedtls_internal_aes_decrypt(mbedtls_aes_context *ctx, in mbedtls_internal_aes_decrypt() [all …]
|
| H A D | cmac.c | 96 static int cmac_generate_subkeys(mbedtls_cipher_context_t *ctx, in cmac_generate_subkeys() 156 int mbedtls_cipher_cmac_setup(mbedtls_cipher_context_t *ctx) in mbedtls_cipher_cmac_setup() 174 int mbedtls_cipher_cmac_starts(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_cmac_starts() 208 int mbedtls_cipher_cmac_update(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_cmac_update() 278 int mbedtls_cipher_cmac_finish(mbedtls_cipher_context_t *ctx, in mbedtls_cipher_cmac_finish() 337 int mbedtls_cipher_cmac_reset(mbedtls_cipher_context_t *ctx) in mbedtls_cipher_cmac_reset() 362 mbedtls_cipher_context_t ctx; in mbedtls_cipher_cmac() local 749 mbedtls_cipher_context_t ctx; in cmac_test_subkeys() local
|
| H A D | ecjpake.c | 50 void mbedtls_ecjpake_init(mbedtls_ecjpake_context *ctx) in mbedtls_ecjpake_init() 70 void mbedtls_ecjpake_free(mbedtls_ecjpake_context *ctx) in mbedtls_ecjpake_free() 93 int mbedtls_ecjpake_setup(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_setup() 126 int mbedtls_ecjpake_set_point_format(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_set_point_format() 142 int mbedtls_ecjpake_check(const mbedtls_ecjpake_context *ctx) in mbedtls_ecjpake_check() 516 int mbedtls_ecjpake_read_round_one(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_read_round_one() 529 int mbedtls_ecjpake_write_round_one(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_write_round_one() 566 int mbedtls_ecjpake_read_round_two(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_read_round_two() 652 int mbedtls_ecjpake_write_round_two(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_write_round_two() 726 static int mbedtls_ecjpake_derive_k(mbedtls_ecjpake_context *ctx, in mbedtls_ecjpake_derive_k() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/misc/ |
| H A D | crc32.c | 137 void crc32_init(crc32_state *ctx) in crc32_init() 143 void crc32_update(crc32_state *ctx, const unsigned char *input, unsigned long length) in crc32_update() 157 void crc32_finish(const crc32_state *ctx, void *hash, unsigned long size) in crc32_finish()
|
| /optee_os/core/drivers/crypto/caam/cipher/ |
| H A D | caam_cipher.c | 134 enum caam_status caam_cipher_block(struct cipherdata *ctx, bool savectx, in caam_cipher_block() 257 static TEE_Result do_allocate(void **ctx, uint32_t algo) in do_allocate() 307 static void do_free_intern(struct cipherdata *ctx) in do_free_intern() 332 void caam_cipher_free(void *ctx) in caam_cipher_free() 529 struct cipherdata *ctx = dupdate->ctx; in do_update_streaming() local 745 struct cipherdata *ctx = dupdate->ctx; in do_update_cipher() local
|
| /optee_os/core/drivers/crypto/se050/adaptors/apis/ |
| H A D | sss.c | 53 sss_status_t se050_rotate_scp03_keys(struct sss_se05x_ctx *ctx) in se050_rotate_scp03_keys() 184 sss_status_t se050_session_open(struct sss_se05x_ctx *ctx, in se050_session_open() 219 sss_status_t se050_key_store_and_object_init(struct sss_se05x_ctx *ctx) in se050_key_store_and_object_init()
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_authenc.h | 18 void *ctx; /* Authenc context */ member 26 void *ctx; /* Software context */ member 39 void *ctx; /* Software context */ member 48 void *ctx; /* Software context */ member 58 void *ctx; /* Software context */ member
|
| /optee_os/core/mm/ |
| H A D | pgt_cache.c | 492 static bool match_pgt(struct pgt *pgt, vaddr_t vabase, void *ctx) in match_pgt() 497 static struct pgt *pop_from_cache_list(vaddr_t vabase, void *ctx) in pop_from_cache_list() 590 static struct pgt *pop_from_some_list(vaddr_t vabase, void *ctx) in pop_from_some_list() 612 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_flush() local 658 static bool pgt_entry_matches(struct pgt *p, void *ctx, vaddr_t begin, in pgt_entry_matches() 674 static void flush_ctx_range_from_list(struct pgt_cache *pgt_cache, void *ctx, in flush_ctx_range_from_list() 721 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_flush_range() local 733 void *ctx, vaddr_t begin, vaddr_t end) in clear_ctx_range_from_list() 763 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_clear_range() local 773 static bool pgt_alloc_unlocked(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_alloc_unlocked() [all …]
|
| /optee_os/core/crypto/ |
| H A D | sm4.c | 186 void sm4_setkey_enc(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_enc() 192 void sm4_setkey_dec(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_dec() 203 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb() 216 void sm4_crypt_cbc(struct sm4_context *ctx, size_t length, uint8_t iv[16], in sm4_crypt_cbc() 249 void sm4_crypt_ctr(struct sm4_context *ctx, size_t length, uint8_t ctr[16], in sm4_crypt_ctr() 295 void sm4_crypt_xts(struct sm4_context *ctx, struct sm4_context *ctx_ek, in sm4_crypt_xts()
|
| /optee_os/core/lib/libtomcrypt/src/pk/ed25519/ |
| H A D | ed25519_sign.c | 14 const unsigned char *ctx, unsigned long ctxlen, in s_ed25519_sign() 66 const unsigned char *ctx, unsigned long ctxlen, in ed25519ctx_sign() 93 const unsigned char *ctx, unsigned long ctxlen, in ed25519ph_sign()
|
| H A D | ed25519_verify.c | 14 const unsigned char *ctx, unsigned long ctxlen, in s_ed25519_verify() 69 const unsigned char *ctx, unsigned long ctxlen, in ed25519ctx_verify() 98 const unsigned char *ctx, unsigned long ctxlen, in ed25519ph_verify()
|
| /optee_os/core/drivers/crypto/asu_driver/ |
| H A D | asu_hash.c | 133 static TEE_Result asu_hash_initialize(struct crypto_hash_ctx *ctx) in asu_hash_initialize() 220 static TEE_Result asu_hash_do_update(struct crypto_hash_ctx *ctx, in asu_hash_do_update() 303 static TEE_Result asu_hash_do_final(struct crypto_hash_ctx *ctx, in asu_hash_do_final() 321 static void asu_hash_ctx_free(struct crypto_hash_ctx *ctx) in asu_hash_ctx_free() 356 static struct asu_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 372 static TEE_Result asu_hash_ctx_allocate(struct crypto_hash_ctx **ctx, in asu_hash_ctx_allocate()
|