[PATCH v8 07/15] boot: image: add a stage pre-load

Tom Rini trini at konsulko.com
Fri Apr 1 01:21:37 CEST 2022


On Mon, Mar 28, 2022 at 10:56:59PM +0200, Philippe Reynes wrote:

> 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 at softathome.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220331/256750ab/attachment.sig>


More information about the U-Boot mailing list