9#ifndef CRYPTO_DRV_COMMON_H
10#define CRYPTO_DRV_COMMON_H
78#if defined(CONFIG_CRYPTO_PERF_STATISTICS)
87#define crypto_timer_start(...)
88#define crypto_timer_end(...)
89#define crypto_timer_print(...)
90#define crypto_timer_print_all(...)
td_s32 crypto_virt_xor_phys_copy_to_phys(td_phys_addr_t dst_phys_addr, const td_u8 *a_virt_addr, td_phys_addr_t b_phys_addr, td_u32 length)
td_phys_addr_t crypto_get_phys_addr(td_void *ptr)
Definition crypto_drv_common.c:54
td_void * crypto_malloc_coherent(td_u32 size)
Definition crypto_drv_common.c:26
td_void crypto_get_smmu_table_addr(unsigned long *table, unsigned long *rdaddr, unsigned long *wraddr)
Definition crypto_drv_common.c:71
td_bool crypto_wait_func_is_support(void)
Definition crypto_drv_init.c:170
td_void crypto_wait_func_config(td_bool is_enable)
Definition crypto_drv_init.c:163
crypto_sm_alg
Definition crypto_drv_common.h:58
@ CRYPTO_SM_ALG_SM2
Definition crypto_drv_common.h:59
@ CRYPTO_SM_ALG_SM4
Definition crypto_drv_common.h:61
@ CRYPTO_SM_ALG_SM3
Definition crypto_drv_common.h:60
td_void * crypto_malloc_mmz(td_u32 size)
Definition crypto_drv_common.c:38
td_bool crypto_smmu_support(td_void)
Definition crypto_drv_common.c:62
td_bool crypto_sm_support(crypto_sm_alg alg)
Definition crypto_drv_init.c:61
crypto_timer_id
Definition crypto_drv_common.h:66
@ TIMER_ID_0
Definition crypto_drv_common.h:67
@ TIMER_ID_6
Definition crypto_drv_common.h:73
@ TIMER_ID_8
Definition crypto_drv_common.h:75
@ TIMER_ID_1
Definition crypto_drv_common.h:68
@ TIMER_ID_9
Definition crypto_drv_common.h:76
@ TIMER_ID_5
Definition crypto_drv_common.h:72
@ TIMER_ID_2
Definition crypto_drv_common.h:69
@ TIMER_ID_4
Definition crypto_drv_common.h:71
@ TIMER_ID_7
Definition crypto_drv_common.h:74
@ TIMER_ID_3
Definition crypto_drv_common.h:70
void crypto_cache_inv(uintptr_t base_addr, td_u32 size)
Definition crypto_osal_lib.c:26
void crypto_cache_all(void)
Definition crypto_osal_lib.c:31
td_bool crypto_symc_support(crypto_symc_alg alg, crypto_symc_work_mode mode, crypto_symc_key_length key_len, crypto_symc_bit_width bit_width)
Definition crypto_drv_common.c:132
td_s32 crypto_phys_copy_to_virt(td_u8 *dst_virt_addr, td_phys_addr_t src_phys_addr, td_u32 length)
td_s32 crypto_destroy_keyslot_handle(td_handle keyslot_handle)
td_s32 crypto_virt_copy_to_phys(td_phys_addr_t dst_phys_addr, const td_u8 *src_virt_addr, td_u32 length)
#define crypto_timer_print(...)
Definition crypto_drv_common.h:89
crypto_cpu_type crypto_get_cpu_type(td_void)
Definition crypto_drv_common.c:95
td_u32 crypto_get_pke_rom_lib_start_addr(td_void)
Definition crypto_drv_common.c:103
#define crypto_timer_print_all(...)
Definition crypto_drv_common.h:90
td_void crypto_free_coherent(td_void *ptr)
Definition crypto_drv_common.c:46
#define crypto_timer_end(...)
Definition crypto_drv_common.h:88
#define crypto_timer_start(...)
Definition crypto_drv_common.h:87
td_bool crypto_ecc_support(drv_pke_ecc_curve_type curve_type)
td_s32 crypto_get_index_by_value(const crypto_table_item *table, td_u32 table_size, td_u32 value, td_u32 *index)
td_bool crypto_hash_support(crypto_hash_type hash_type)
Definition crypto_drv_common.c:125
td_s32 crypto_get_value_by_index(const crypto_table_item *table, td_u32 table_size, td_u32 index, td_u32 *value)
Definition crypto_drv_common.c:252
td_bool crypto_rsa_support(td_u32 klen, drv_pke_rsa_scheme scheme)
Definition crypto_drv_common.c:117
td_s32 crypto_create_keyslot_handle(td_handle *keyslot_handle)
td_s32 crypto_get_multi_random(td_u32 size, td_u8 *randnum)
void crypto_cache_flush(uintptr_t base_addr, td_u32 size)
Definition crypto_osal_lib.c:21
crypto_hash_type
Definition crypto_hash_struct.h:98
drv_pke_rsa_scheme
Definition crypto_pke_struct.h:50
drv_pke_ecc_curve_type
Definition crypto_pke_struct.h:32
crypto_symc_work_mode
Definition crypto_symc_struct.h:32
crypto_symc_alg
Definition crypto_symc_struct.h:22
crypto_symc_bit_width
Definition crypto_symc_struct.h:62
crypto_symc_key_length
Definition crypto_symc_struct.h:46
crypto_cpu_type
Definition hal_common.h:41
Definition crypto_drv_common.h:93
td_u32 index
Definition crypto_drv_common.h:94
td_u32 value
Definition crypto_drv_common.h:95
td_u32 td_handle
Definition td_type.h:51
unsigned int uintptr_t
Definition td_type.h:65
unsigned char td_u8
Definition td_type.h:36
td_u8 td_bool
Definition td_type.h:50
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44
unsigned long long td_u64
Definition td_type.h:39
char td_char
Definition td_type.h:41
unsigned int td_phys_addr_t
Definition td_type.h:74