Skip to content

Commit 6b8fdc1

Browse files
nordicjmde-nordic
authored andcommittedMar 13, 2025
[nrf fromtree] 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 <jamie.mccrae@nordicsemi.no> Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no> (cherry picked from commit 4bda587) (cherry picked from commit bc8d277)
1 parent 180aedb commit 6b8fdc1

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

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ struct flash_area;
124124
* the format and size of the raw slot (compressed)
125125
* signature
126126
*/
127+
#define IMAGE_TLV_COMP_DEC_SIZE 0x73 /* Compressed decrypted image size */
127128
/*
128129
* vendor reserved TLVs at xxA0-xxFF,
129130
* where xx denotes the upper byte

0 commit comments

Comments
 (0)