Skip to content

Commit dc4abc7

Browse files
nordicjmde-nordic
authored andcommitted
[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> (cherry picked from commit 4bda587) (cherry picked from commit bc8d277) Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent 9645782 commit dc4abc7

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)