Skip to content

PBL: enable hash functions for Vendor Authorized Boot

Michael Tretter barebox 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260928-crypto-pbl-sha384-e59cd7b4cd1d

Versions newest first

  1. v2 Latest3 patches 1 replyApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Rename sha256.c to sha.c
- Move one-shot helper from header to sha.c
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3crypto: make sha384 and sha512 available in PBLcrypto/Makefile crypto/sha4.c include/crypto/pbl-sha.h+14 -50 replies
2/3PBL: rename sha256.c to generic sha.cpbl/Makefile pbl/sha.c+2 -20 replies
3/3PBL: add oneshot helper for sha384 and sha512include/crypto/pbl-sha.h pbl/sha.c+36 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] PBL: enable hash functions for Vendor Authorized Boot

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.

---
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/[email protected]

---
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,

Signature · 1 line
Michael Tretter <[email protected]>