
Level, the flash map maps numeric IDs to flash areas. Flash map Ī device’s flash is partitioned according to its flash map. This field provides for backwards compatibility inĬase of changes to the format of the image header. The ih_hdr_size field indicates the length of the header, and therefore the In thisĬase the value of the ih_protect_tlv_size field is 0. Hash is only calculated over the image header and the image itself. Info header itself) have to be included in the hash calculation. IMAGE_TLV_PROT_INFO_MAGIC must be present and the protected TLVs (plus the If protected TLVs are present then a TLV info header with magic equal to The ih_protect_tlv_size field indicates the length of the protected TLV area. Optional type-length-value records (TLVs) containing image metadata are placed */ #define IMAGE_TLV_KEYHASH 0x01 /* hash of the public key */ #define IMAGE_TLV_SHA256 0x10 /* SHA256 of image hdr and body */ #define IMAGE_TLV_RSA2048_PSS 0x20 /* RSA2048 of hash output */ #define IMAGE_TLV_ECDSA224 0x21 /* ECDSA of hash output */ #define IMAGE_TLV_ECDSA256 0x22 /* ECDSA of hash output */ #define IMAGE_TLV_RSA3072_PSS 0x23 /* RSA3072 of hash output */ #define IMAGE_TLV_ED25519 0x24 /* ED25519 of hash output */ #define IMAGE_TLV_ENC_RSA2048 0x30 /* Key encrypted with RSA-OAEP-2048 */ #define IMAGE_TLV_ENC_KW 0x31 /* Key encrypted with AES-KW-128 or 256 */ #define IMAGE_TLV_ENC_EC256 0x32 /* Key encrypted with ECIES-P256 */ #define IMAGE_TLV_ENC_X25519 0x33 /* Key encrypted with ECIES-X25519 */ #define IMAGE_TLV_DEPENDENCY 0x40 /* Image depends on other image */ #define IMAGE_TLV_SEC_CNT 0x50 /* security counter */ */ #define IMAGE_F_RAM_LOAD 0x00000020 /* * Image trailer TLV types.


*/ #define IMAGE_F_NON_BOOTABLE 0x00000010 /* Split image app. #define IMAGE_MAGIC 0x96f3b83d #define IMAGE_HEADER_SIZE 32 struct image_version /* * Image header flags. Testing Fault Injection Hardening (FIH).Multiple image boot for RAM loading and direct-xip.
