From: Michael Tretter <m.tretter@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: [PATCH v2 0/3] PBL: enable hash functions for Vendor Authorized Boot
Date: Wed, 30 Sep 2026 10:28:54 +0200 [thread overview]
Message-ID: <20260930-crypto-pbl-sha384-v2-0-1cedca8ce7c6@pengutronix.de> (raw)
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>
next reply other threads:[~2026-09-30 8:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 8:28 Michael Tretter [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260930-crypto-pbl-sha384-v2-0-1cedca8ce7c6@pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox