WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
crypto_drv_common.h 文件参考
#include "crypto_type.h"
#include "drv_common.h"
#include "crypto_osal_adapt.h"
#include "crypto_pke_struct.h"
#include "crypto_hash_struct.h"
#include "crypto_symc_struct.h"
crypto_drv_common.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  crypto_table_item
 

宏定义

#define crypto_timer_start(...)
 
#define crypto_timer_end(...)
 
#define crypto_timer_print(...)
 
#define crypto_timer_print_all(...)
 

枚举

enum  crypto_sm_alg { CRYPTO_SM_ALG_SM2 , CRYPTO_SM_ALG_SM3 , CRYPTO_SM_ALG_SM4 }
 
enum  crypto_timer_id {
  TIMER_ID_0 = 0 , TIMER_ID_1 , TIMER_ID_2 , TIMER_ID_3 ,
  TIMER_ID_4 , TIMER_ID_5 , TIMER_ID_6 , TIMER_ID_7 ,
  TIMER_ID_8 , TIMER_ID_9
}
 

函数

td_voidcrypto_malloc_coherent (td_u32 size)
 
td_voidcrypto_malloc_mmz (td_u32 size)
 
td_void crypto_free_coherent (td_void *ptr)
 
td_phys_addr_t crypto_get_phys_addr (td_void *ptr)
 
td_bool crypto_smmu_support (td_void)
 
td_void crypto_get_smmu_table_addr (unsigned long *table, unsigned long *rdaddr, unsigned long *wraddr)
 
crypto_cpu_type crypto_get_cpu_type (td_void)
 
td_u32 crypto_get_pke_rom_lib_start_addr (td_void)
 
void crypto_cache_flush (uintptr_t base_addr, td_u32 size)
 
void crypto_cache_inv (uintptr_t base_addr, td_u32 size)
 
void crypto_cache_all (void)
 
td_bool crypto_ecc_support (drv_pke_ecc_curve_type curve_type)
 
td_bool crypto_rsa_support (td_u32 klen, drv_pke_rsa_scheme scheme)
 
td_bool crypto_hash_support (crypto_hash_type hash_type)
 
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)
 
td_s32 crypto_get_multi_random (td_u32 size, td_u8 *randnum)
 
td_bool crypto_sm_support (crypto_sm_alg alg)
 
td_s32 crypto_get_value_by_index (const crypto_table_item *table, td_u32 table_size, td_u32 index, td_u32 *value)
 
td_s32 crypto_get_index_by_value (const crypto_table_item *table, td_u32 table_size, td_u32 value, td_u32 *index)
 
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_s32 crypto_virt_copy_to_phys (td_phys_addr_t dst_phys_addr, const td_u8 *src_virt_addr, td_u32 length)
 
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_create_keyslot_handle (td_handle *keyslot_handle)
 
td_s32 crypto_destroy_keyslot_handle (td_handle keyslot_handle)
 
td_void crypto_wait_func_config (td_bool is_enable)
 
td_bool crypto_wait_func_is_support (void)
 

宏定义说明

◆ crypto_timer_end

#define crypto_timer_end (   ...)

◆ crypto_timer_print

#define crypto_timer_print (   ...)

◆ crypto_timer_print_all

#define crypto_timer_print_all (   ...)

◆ crypto_timer_start

#define crypto_timer_start (   ...)

枚举类型说明

◆ crypto_sm_alg

枚举值
CRYPTO_SM_ALG_SM2 
CRYPTO_SM_ALG_SM3 
CRYPTO_SM_ALG_SM4 

◆ crypto_timer_id

枚举值
TIMER_ID_0 
TIMER_ID_1 
TIMER_ID_2 
TIMER_ID_3 
TIMER_ID_4 
TIMER_ID_5 
TIMER_ID_6 
TIMER_ID_7 
TIMER_ID_8 
TIMER_ID_9 

函数说明

◆ crypto_cache_all()

void crypto_cache_all ( void  )

◆ crypto_cache_flush()

void crypto_cache_flush ( uintptr_t  base_addr,
td_u32  size 
)

◆ crypto_cache_inv()

void crypto_cache_inv ( uintptr_t  base_addr,
td_u32  size 
)

◆ crypto_create_keyslot_handle()

td_s32 crypto_create_keyslot_handle ( td_handle keyslot_handle)

◆ crypto_destroy_keyslot_handle()

td_s32 crypto_destroy_keyslot_handle ( td_handle  keyslot_handle)

◆ crypto_ecc_support()

td_bool crypto_ecc_support ( drv_pke_ecc_curve_type  curve_type)

◆ crypto_free_coherent()

td_void crypto_free_coherent ( td_void ptr)

◆ crypto_get_cpu_type()

crypto_cpu_type crypto_get_cpu_type ( td_void  )

◆ crypto_get_index_by_value()

td_s32 crypto_get_index_by_value ( const crypto_table_item table,
td_u32  table_size,
td_u32  value,
td_u32 index 
)

◆ crypto_get_multi_random()

td_s32 crypto_get_multi_random ( td_u32  size,
td_u8 randnum 
)

◆ crypto_get_phys_addr()

td_phys_addr_t crypto_get_phys_addr ( td_void ptr)

◆ crypto_get_pke_rom_lib_start_addr()

td_u32 crypto_get_pke_rom_lib_start_addr ( td_void  )

◆ crypto_get_smmu_table_addr()

td_void crypto_get_smmu_table_addr ( unsigned long *  table,
unsigned long *  rdaddr,
unsigned long *  wraddr 
)

◆ crypto_get_value_by_index()

td_s32 crypto_get_value_by_index ( const crypto_table_item table,
td_u32  table_size,
td_u32  index,
td_u32 value 
)

◆ crypto_hash_support()

td_bool crypto_hash_support ( crypto_hash_type  hash_type)

◆ crypto_malloc_coherent()

td_void * crypto_malloc_coherent ( td_u32  size)

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.

Description: Provides cipher driver common utils.
History:
2023-03-22, Create file.

◆ crypto_malloc_mmz()

td_void * crypto_malloc_mmz ( td_u32  size)

◆ crypto_phys_copy_to_virt()

td_s32 crypto_phys_copy_to_virt ( td_u8 dst_virt_addr,
td_phys_addr_t  src_phys_addr,
td_u32  length 
)

◆ crypto_rsa_support()

td_bool crypto_rsa_support ( td_u32  klen,
drv_pke_rsa_scheme  scheme 
)

◆ crypto_sm_support()

td_bool crypto_sm_support ( crypto_sm_alg  alg)

◆ crypto_smmu_support()

td_bool crypto_smmu_support ( td_void  )

◆ crypto_symc_support()

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 
)

◆ crypto_virt_copy_to_phys()

td_s32 crypto_virt_copy_to_phys ( td_phys_addr_t  dst_phys_addr,
const td_u8 src_virt_addr,
td_u32  length 
)

◆ crypto_virt_xor_phys_copy_to_phys()

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 
)

◆ crypto_wait_func_config()

td_void crypto_wait_func_config ( td_bool  is_enable)

◆ crypto_wait_func_is_support()

td_bool crypto_wait_func_is_support ( void  )