]> git.baikalelectronics.ru Git - uboot.git/commit
binman: add sign option for binman
authorIvan Mikhaylov <fr0st61te@gmail.com>
Wed, 8 Mar 2023 01:13:39 +0000 (01:13 +0000)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:51 +0000 (16:08 -0600)
commit9b540e419bad35f14ae199e6c343d19b9e7ba999
treefb4e2966687221cd1cba730be6446eb0e32bf6ed
parentd7facb35dca74d916c6b72913cdde8f8d31e1b0d
binman: add sign option for binman

Introduce proof of concept for binman's new option which provides sign
and replace FIT containers in binary images.

Usage as example:

from:
mkimage -G privateky -r -o sha256,rsa4096 -F fit
binman replace -i flash.bin -f fit.fit fit

to:
binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fit fit

and to this one if it's need to be extracted, signed with key and put it
back in image:
binman sign -i flash.bin -k privatekey -a sha256,rsa4096 fit

Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
common/main.c
tools/binman/cmdline.py
tools/binman/control.py
tools/binman/etype/fit.py
tools/binman/etype/section.py