Skip to content

Commit

Permalink
boot: bootutil: Add TLV for size of compressed but decrypted image
Browse files Browse the repository at this point in the history
This TLV is needed in order to know what the data length
provided to the decompression system is to remove the padding
that is a resultant of the encryption block size

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm authored and de-nordic committed Jan 10, 2025
1 parent d3080f1 commit 4bda587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boot/bootutil/include/bootutil/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ struct flash_area;
* the format and size of the raw slot (compressed)
* signature
*/
#define IMAGE_TLV_COMP_DEC_SIZE 0x73 /* Compressed decrypted image size */
/*
* vendor reserved TLVs at xxA0-xxFF,
* where xx denotes the upper byte
Expand Down

0 comments on commit 4bda587

Please sign in to comment.