Skip to content

Commit

Permalink
[nrf fromtree] boot: bootutil: Add TLV for size of compressed but dec…
Browse files Browse the repository at this point in the history
…rypted 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]>
(cherry picked from commit 4bda587549c0fccd5cd9b59d76c8edf061ee84c3)
  • Loading branch information
nordicjm authored and michalek-no committed Jan 10, 2025
1 parent fd8cb31 commit a00fb27
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 @@ -124,6 +124,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 a00fb27

Please sign in to comment.