5#ifndef UPG_ENCRY_PORTING_H
6#define UPG_ENCRY_PORTING_H
8#ifdef CONFIG_MIDDLEWARE_SUPPORT_UPG_COMPRESS_ENCRY
19#define IMAGE_HEADER_LEN ((KEY_AREA_STRUCTURE_LENGTH) + (CODE_INFO_STRUCTURE_LENGTH))
20#define FLASH_ENCRY_FLAG 0x1E6987C3
21#define OTA_ENCRY_FLAG 0x3C7896E1
22#define OTA_IMAGE_SALT_LEN 28
23#define MAX_DUMP_LENGHT 64
24#define BYTES_IN_ONE_LINE 16
38 uint8_t salt[OTA_IMAGE_SALT_LEN];
43 ota_cryto_cfg decry_cfg;
44 ota_cryto_cfg encry_cfg;
64errcode_t upg_process_cryto_info(uint32_t *head_offset,
td_bool *is_image_head);
crypto_kdf_hard_key_type
KDF 密钥派生时派生key类型选择。
Definition crypto_km_struct.h:79
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
#define IV_LEN
IV 长度。
Definition upg.h:63
td_u8 td_bool
Definition td_type.h:50