public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/2] test/py: vboot: fix signature check on config node
@ 2020-03-28 16:06 Philippe Reynes
  2020-03-28 16:06 ` [PATCH v2 1/2] test/py: vboot: add a test to check fit signature on fit with padding Philippe Reynes
  2020-03-28 16:06 ` [PATCH v2 2/2] rsa: sig: fix config signature check for " Philippe Reynes
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Reynes @ 2020-03-28 16:06 UTC (permalink / raw)
  To: u-boot

The signature check of config node is broken when used on fit with padding.
We didn't see it before because this case is not covered by vboot test.

When check the signature for a config nde, u-boot uses all the properties
of the node referenced in the config node, except the property data. When
padding is used on fit, the property data is replaced by two properties:
data-offset and data-size, and u-boot uses those properties when checking
the signature. To fix this signature check, we simply ignore the properties
data-offset and data_size.

The first commit add some vboot tests that check signature on fit with
padding. The second commit fixes the signature check on config node for
fit with padding.

Philippe Reynes (2):
  test/py: vboot: add a test to check fit signature on fit with padding
  rsa: sig: fix config signature check for fit with padding

Changelog:
v2:
- fix spelling in commit message (thanks Simon)

 common/image-sig.c          |  2 +-
 test/py/tests/test_vboot.py | 42 ++++++++++++++++++++++++++++--------------
 2 files changed, 29 insertions(+), 15 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2020-04-28 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-28 16:06 [PATCH v2 0/2] test/py: vboot: fix signature check on config node Philippe Reynes
2020-03-28 16:06 ` [PATCH v2 1/2] test/py: vboot: add a test to check fit signature on fit with padding Philippe Reynes
2020-04-28 13:53   ` Tom Rini
2020-03-28 16:06 ` [PATCH v2 2/2] rsa: sig: fix config signature check for " Philippe Reynes

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