public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Sourcing a signed boot script
@ 2019-12-05 17:09 Diego Rondini
  2019-12-05 22:14 ` Lukasz Majewski
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Rondini @ 2019-12-05 17:09 UTC (permalink / raw)
  To: u-boot

Hi,

I would like to ask if it is possible to source a script after
verifying its signature.

Currently I've been able to source a script from a signed FIT image,
before doing "bootm", with:
source <addr>:<name>
But this way the signature is not checked yet, so the script cannot be trusted.

According to the docs[1] it seems that it's not possible yet to verify
a FIT image signature without also booting the corresponding image. Is
that right?


[1] https://gitlab.denx.de/u-boot/u-boot/blob/v2019.10/doc/uImage.FIT/signature.txt#L580

Thank you,
Diego Rondini

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Sourcing a signed boot script
  2019-12-05 17:09 Sourcing a signed boot script Diego Rondini
@ 2019-12-05 22:14 ` Lukasz Majewski
  2019-12-06 14:47   ` Diego Rondini
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Majewski @ 2019-12-05 22:14 UTC (permalink / raw)
  To: u-boot

Hi Diego,

> Hi,
> 
> I would like to ask if it is possible to source a script after
> verifying its signature.
> 
> Currently I've been able to source a script from a signed FIT image,
> before doing "bootm", with:
> source <addr>:<name>
> But this way the signature is not checked yet, so the script cannot
> be trusted.
> 
> According to the docs[1] it seems that it's not possible yet to verify
> a FIT image signature without also booting the corresponding image. Is
> that right?

You can look into the "spl" command, which does the FIT parsing (to
prepare data for falcon mode booting).

You may want to re-use such "dry-run" feature to verify the signature,
extract the script and use it.

(And yes, I don't think that checking the signature for script works
out of the box).

> 
> 
> [1]
> https://gitlab.denx.de/u-boot/u-boot/blob/v2019.10/doc/uImage.FIT/signature.txt#L580
> 
> Thank you,
> Diego Rondini




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191205/a967bc2c/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Sourcing a signed boot script
  2019-12-05 22:14 ` Lukasz Majewski
@ 2019-12-06 14:47   ` Diego Rondini
  0 siblings, 0 replies; 3+ messages in thread
From: Diego Rondini @ 2019-12-06 14:47 UTC (permalink / raw)
  To: u-boot

Hi Lukasz,

On Thu, Dec 5, 2019 at 11:14 PM Lukasz Majewski <lukma@denx.de> wrote:
>
> Hi Diego,
>
> > Hi,
> >
> > I would like to ask if it is possible to source a script after
> > verifying its signature.
> >
> > Currently I've been able to source a script from a signed FIT image,
> > before doing "bootm", with:
> > source <addr>:<name>
> > But this way the signature is not checked yet, so the script cannot
> > be trusted.
> >
> > According to the docs[1] it seems that it's not possible yet to verify
> > a FIT image signature without also booting the corresponding image. Is
> > that right?
>
> You can look into the "spl" command, which does the FIT parsing (to
> prepare data for falcon mode booting).
>
> You may want to re-use such "dry-run" feature to verify the signature,
> extract the script and use it.
>
> (And yes, I don't think that checking the signature for script works
> out of the box).
>

I will have a look at your suggestion and report back the outcome!

Thanks again,
Diego Rondini

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-06 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-05 17:09 Sourcing a signed boot script Diego Rondini
2019-12-05 22:14 ` Lukasz Majewski
2019-12-06 14:47   ` Diego Rondini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox