Skip to content

Commit 4bda587

Browse files
nordicjmde-nordic
authored andcommitted
boot: bootutil: Add TLV for size of compressed but decrypted image
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]>
1 parent d3080f1 commit 4bda587

File tree

1 file changed

+1
-0
lines changed
  • boot/bootutil/include/bootutil

1 file changed

+1
-0
lines changed

boot/bootutil/include/bootutil/image.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ struct flash_area;
126126
* the format and size of the raw slot (compressed)
127127
* signature
128128
*/
129+
#define IMAGE_TLV_COMP_DEC_SIZE 0x73 /* Compressed decrypted image size */
129130
/*
130131
* vendor reserved TLVs at xxA0-xxFF,
131132
* where xx denotes the upper byte

0 commit comments

Comments
 (0)