8#ifndef DRV_FLASHBOOT_CIPHER_H
9#define DRV_FLASHBOOT_CIPHER_H
21 const unsigned char *iv,
unsigned int iv_length);
27 unsigned int hash_length);
crypto_kdf_hard_key_type
KDF 密钥派生时派生key类型选择。
Definition crypto_km_struct.h:79
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)
Definition drv_flashboot_cipher.c:157
int drv_rom_cipher_destroy_keyslot(uint32_t keyslot_chn_num)
Definition drv_flashboot_cipher.c:73
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)
Definition drv_flashboot_symc.c:178
int drv_rom_cipher_sm3(const unsigned char *data, unsigned int data_length, unsigned char *hash, unsigned int hash_length)
Definition drv_flashboot_cipher.c:187
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)
Definition drv_flashboot_symc.c:184
int32_t drv_rom_cipher_symc_init(void)
Definition drv_flashboot_symc.c:71
int drv_rom_cipher_config_clear_key(const crypto_klad_clear_key clear_key)
Definition drv_flashboot_cipher.c:118
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)
Definition drv_flashboot_cipher.c:199
int drv_rom_cipher_config_odrk1(const crypto_klad_effective_key effective_key)
Definition drv_flashboot_cipher.c:78
int drv_rom_cipher_fapc_bypass_config(td_u32 region, td_u32 start_addr, td_u32 end_addr, td_bool lock)
Definition drv_flashboot_cipher.c:182
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)
Definition drv_flashboot_cipher.c:24
int32_t drv_rom_cipher_symc_deinit(void)
Definition drv_flashboot_symc.c:93
unsigned long long uint64_t
Definition osal_types.h:35
klad送明文key时,明文key的结构。
Definition crypto_km_struct.h:261
Keyladder硬件key参数配置。
Definition crypto_km_struct.h:356
Definition drv_rom_cipher.h:27
Definition drv_rom_cipher.h:21
Definition drv_rom_cipher.h:32
td_u8 td_bool
Definition td_type.h:50
unsigned int td_u32
Definition td_type.h:38
Definition hal_uart_v151_regs_def.h:38