WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
crypto_drv_common.c 文件参考
#include "drv_common.h"
#include "drv_trng.h"
#include "crypto_drv_common.h"
crypto_drv_common.c 的引用(Include)关系图:

宏定义

#define MAX_DUMP_LENGHT   (512)
 
#define BYTES_IN_ONE_LINE   (16)
 
#define KERN_CONT
 

函数

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)
 
td_s32 drv_cipher_register_func (const crypto_drv_func *drv_func_list)
 
crypto_cpu_type crypto_get_cpu_type (td_void)
 
td_u32 crypto_get_pke_rom_lib_start_addr (td_void)
 
td_bool __attribute__ ((weak))
 
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)
 
void crypto_dump_data (const char *name, const td_u8 *data, td_u32 data_len)
 
td_s32 crypto_get_value_by_index (const crypto_table_item *table, td_u32 table_size, td_u32 index, td_u32 *value)
 

宏定义说明

◆ BYTES_IN_ONE_LINE

#define BYTES_IN_ONE_LINE   (16)

◆ KERN_CONT

#define KERN_CONT

◆ MAX_DUMP_LENGHT

#define MAX_DUMP_LENGHT   (512)

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

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

函数说明

◆ __attribute__()

td_bool __attribute__ ( (weak)  )

◆ crypto_dump_data()

void crypto_dump_data ( const char *  name,
const td_u8 data,
td_u32  data_len 
)

◆ 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_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_rsa_support()

td_bool crypto_rsa_support ( td_u32  klen,
drv_pke_rsa_scheme  scheme 
)

◆ 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 
)

◆ drv_cipher_register_func()

td_s32 drv_cipher_register_func ( const crypto_drv_func drv_func_list)