* issues verifying FIT image signature
@ 2018-11-02 15:16 Kai Che
2018-11-07 8:01 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Kai Che @ 2018-11-02 15:16 UTC (permalink / raw)
To: barebox
Hi all,
I'm trying to verify the signature of a FIT image in barebox.
I created the FIT image with the following .its file:
...
configurations {
default = "config@1";
config@1 {
description = "Boot Raspian kernel";
kernel = "kernel";
fdt = "fdt-1";
signature@1 {
algo = "sha256,rsa2048";
key-name-hint = "dev";
sign-images = "fdt", "kernel";
...
Verifying the Hashes for the kernel and fdt-1 works fine ("hash OK" for both images) , but when I try to verify the signature I get the follwoing error:
ERROR: FIT: hashed-strings start not found in /configurations/config@1/signature@1
I could follow the error back to the fit_verify_signature function in /common/image-fit.c file, but I don't understand what is causing the error.
Is the function looking for a string called "hashed-strings" in the FIT image file? I checked the .fit file (with hexdump) and I could only find the string "hash@1" which barebox uses to verify the signature.
Best regards
Kai
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: issues verifying FIT image signature
2018-11-02 15:16 issues verifying FIT image signature Kai Che
@ 2018-11-07 8:01 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-11-07 8:01 UTC (permalink / raw)
To: Kai Che; +Cc: barebox
Hi Kai,
On Fri, Nov 02, 2018 at 03:16:44PM +0000, Kai Che wrote:
> Hi all,
>
> I'm trying to verify the signature of a FIT image in barebox.
>
> I created the FIT image with the following .its file:
>
> ...
> configurations {
> default = "config@1";
> config@1 {
> description = "Boot Raspian kernel";
> kernel = "kernel";
> fdt = "fdt-1";
> signature@1 {
> algo = "sha256,rsa2048";
> key-name-hint = "dev";
> sign-images = "fdt", "kernel";
> ...
>
> Verifying the Hashes for the kernel and fdt-1 works fine ("hash OK"
> for both images) , but when I try to verify the signature I get the
> follwoing error:
>
> ERROR: FIT: hashed-strings start not found in /configurations/config@1/signature@1
>
> I could follow the error back to the fit_verify_signature function in
> /common/image-fit.c file, but I don't understand what is causing the
> error.
>
> Is the function looking for a string called "hashed-strings" in the
> FIT image file? I checked the .fit file (with hexdump) and I could
> only find the string "hash@1" which barebox uses to verify the
> signature.
No idea what went wrong. Which options did you pass to mkimage?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-07 8:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 15:16 issues verifying FIT image signature Kai Che
2018-11-07 8:01 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox