WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_flashboot_cipher.h 文件参考
#include <stdint.h>
#include <stdbool.h>
#include "drv_klad.h"
#include "drv_rom_cipher.h"
drv_flashboot_cipher.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

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)
 
int 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)
 
int32_t drv_rom_cipher_symc_init (void)
 
int32_t drv_rom_cipher_symc_deinit (void)
 
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)
 
int32_t drv_rom_cipher_symc_encrypt (uint32_t keyslot_chn_num, uint8_t *iv, uint32_t iv_length, uint64_t src, uint64_t dst, uint32_t length)
 
int32_t drv_rom_cipher_symc_decrypt (uint32_t keyslot_chn_num, uint8_t *iv, uint32_t iv_length, uint64_t src, uint64_t dst, uint32_t length)
 

函数说明

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

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

◆ drv_rom_cipher_symc_decrypt()

int32_t drv_rom_cipher_symc_decrypt ( uint32_t  keyslot_chn_num,
uint8_t *  iv,
uint32_t  iv_length,
uint64_t  src,
uint64_t  dst,
uint32_t  length 
)

◆ drv_rom_cipher_symc_deinit()

int32_t drv_rom_cipher_symc_deinit ( void  )

◆ drv_rom_cipher_symc_encrypt()

int32_t drv_rom_cipher_symc_encrypt ( uint32_t  keyslot_chn_num,
uint8_t *  iv,
uint32_t  iv_length,
uint64_t  src,
uint64_t  dst,
uint32_t  length 
)

◆ drv_rom_cipher_symc_init()

int32_t drv_rom_cipher_symc_init ( void  )