WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_flashboot_cipher.c 文件参考
#include "drv_flashboot_cipher.h"
#include "hal_hash.h"
#include "hash_romable.h"
#include "drv_pke.h"
#include "drv_common.h"
#include "drv_keyslot.h"
#include "drv_klad.h"
#include "drv_fapc.h"
#include "crypto_osal_adapt.h"
#include "crypto_common_macro.h"
drv_flashboot_cipher.c 的引用(Include)关系图:

函数

int drv_rom_cipher_create_keyslot (uint32_t *keyslot_chn_num, const crypto_klad_effective_key *effective_key, crypto_kdf_hard_key_type key_type)
 
int drv_rom_cipher_destroy_keyslot (uint32_t keyslot_chn_num)
 
int drv_rom_cipher_config_odrk1 (const crypto_klad_effective_key effective_key)
 
int drv_rom_cipher_config_clear_key (const crypto_klad_clear_key clear_key)
 
int drv_rom_cipher_fapc_config (unsigned int region, unsigned int start_addr, unsigned int end_addr, const unsigned char *iv, unsigned int iv_length)
 
td_s32 drv_rom_cipher_fapc_bypass_config (td_u32 region, td_u32 start_addr, td_u32 end_addr, td_bool lock)
 
int drv_rom_cipher_sm3 (const unsigned char *data, unsigned int data_length, unsigned char *hash, unsigned int hash_length)
 
int drv_rom_cipher_pke_sm2_verify (const drv_rom_cipher_ecc_point *pub_key, const drv_rom_cipher_data *hash, const drv_rom_cipher_ecc_sig *sig)
 

函数说明

◆ drv_rom_cipher_config_clear_key()

int drv_rom_cipher_config_clear_key ( const crypto_klad_clear_key  clear_key)

◆ drv_rom_cipher_config_odrk1()

int drv_rom_cipher_config_odrk1 ( const crypto_klad_effective_key  effective_key)

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved. Description: flashboot API header file.

Create: 2023-05-26

◆ drv_rom_cipher_create_keyslot()

int drv_rom_cipher_create_keyslot ( uint32_t *  keyslot_chn_num,
const crypto_klad_effective_key effective_key,
crypto_kdf_hard_key_type  key_type 
)

◆ drv_rom_cipher_destroy_keyslot()

int drv_rom_cipher_destroy_keyslot ( uint32_t  keyslot_chn_num)

◆ drv_rom_cipher_fapc_bypass_config()

td_s32 drv_rom_cipher_fapc_bypass_config ( td_u32  region,
td_u32  start_addr,
td_u32  end_addr,
td_bool  lock 
)

◆ drv_rom_cipher_fapc_config()

int drv_rom_cipher_fapc_config ( unsigned int  region,
unsigned int  start_addr,
unsigned int  end_addr,
const unsigned char *  iv,
unsigned int  iv_length 
)

◆ drv_rom_cipher_pke_sm2_verify()

int drv_rom_cipher_pke_sm2_verify ( const drv_rom_cipher_ecc_point pub_key,
const drv_rom_cipher_data hash,
const drv_rom_cipher_ecc_sig sig 
)

◆ drv_rom_cipher_sm3()

int drv_rom_cipher_sm3 ( const unsigned char *  data,
unsigned int  data_length,
unsigned char *  hash,
unsigned int  hash_length 
)