u-boot/boot
Philippe Reynes 982207435a boot: image: add a stage pre-load
Add a stage pre-load that could
check or modify an image.

For the moment, only a header with a signature is
supported. This header has the following format:
- magic : 4 bytes
- version : 4 bytes
- header size : 4 bytes
- image size : 4 bytes
- offset image signature : 4 bytes
- flags : 4 bytes
- reserved0 : 4 bytes
- reserved1 : 4 bytes
- sha256 of the image signature : 32 bytes
- signature of the first 64 bytes : n bytes
- image signature : n bytes
- padding : up to header size

The stage uses a node /image/pre-load/sig to
get some informations:
- algo-name (mandatory) : name of the algo used to sign
- padding-name : name of padding used to sign
- signature-size : size of the signature (in the header)
- mandatory : set to yes if this sig is mandatory
- public-key (madatory) : value of the public key

Before running the image, the stage pre-load checks
the signature provided in the header.

This is an initial support, later we could add the
support of:
- ciphering
- uncompressing
- ...

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
2022-03-31 14:12:01 -04:00
..
android_ab.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
boot_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootm_os.c bootm: Tidy up use of autostart env var 2021-11-16 14:35:09 -05:00
bootm.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
bootretry.c Convert CONFIG_BOOT_RETRY_TIME et al to Kconfig 2022-03-18 12:48:17 -04:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android-dt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-board.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-fit-sig.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-fit.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-pre-load.c boot: image: add a stage pre-load 2022-03-31 14:12:01 -04:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c boot: image: fixup zstd decompression buffer initialization typo 2022-03-28 08:22:17 -04:00
Kconfig boot: image: add a stage pre-load 2022-03-31 14:12:01 -04:00
Makefile boot: image: add a stage pre-load 2022-03-31 14:12:01 -04:00
pxe_utils.c cmd: pxe_utils: sysboot: add kaslr-seed generation support 2022-02-11 09:00:47 -05:00