mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/3] PBL: enable hash functions for Vendor Authorized Boot
@ 2026-09-30  8:28 Michael Tretter
  2026-09-30  8:28 ` [PATCH v2 1/3] crypto: make sha384 and sha512 available in PBL Michael Tretter
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michael Tretter @ 2026-09-30  8:28 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Michael Tretter

Altera's Vendor Authorized Boot (VAB) uses a sha384 hash for verifying
the second stage boot loader.

As preparation for adding VAB, make the sha384 and sha512 hash functions
available in the PBL.

Loading the second stage loader from flash and verifying the signature
will follow as separate patch series.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
Changes in v2:
- Rename sha256.c to sha.c
- Move one-shot helper from header to sha.c
- Link to v1: https://patch.msgid.link/20260928-crypto-pbl-sha384-v1-0-bc7095590123@pengutronix.de

---
Michael Tretter (3):
      crypto: make sha384 and sha512 available in PBL
      PBL: rename sha256.c to generic sha.c
      PBL: add oneshot helper for sha384 and sha512

 crypto/Makefile          |  1 +
 crypto/sha4.c            | 11 ++++-----
 include/crypto/pbl-sha.h | 13 +++++++++++
 pbl/Makefile             |  2 +-
 pbl/sha.c                | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
 pbl/sha256.c             | 28 -----------------------
 6 files changed, 79 insertions(+), 34 deletions(-)
---
base-commit: b3ce2a440f44b0166f9b9e9a3a80bbbfa52a0ef3
change-id: 20260928-crypto-pbl-sha384-e59cd7b4cd1d

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>




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

end of thread, other threads:[~2026-10-01 20:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30  8:28 [PATCH v2 0/3] PBL: enable hash functions for Vendor Authorized Boot Michael Tretter
2026-09-30  8:28 ` [PATCH v2 1/3] crypto: make sha384 and sha512 available in PBL Michael Tretter
2026-09-30  8:28 ` [PATCH v2 2/3] PBL: rename sha256.c to generic sha.c Michael Tretter
2026-09-30  8:28 ` [PATCH v2 3/3] PBL: add oneshot helper for sha384 and sha512 Michael Tretter
2026-10-01 20:19 ` [PATCH v2 0/3] PBL: enable hash functions for Vendor Authorized Boot Sascha Hauer

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