Skip to content

PBL: add support for optimized sha256

Sascha Hauer barebox 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260709-pbl-sha256-b60f9893126e

Versions newest first

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- drop ARMv8 specific comment in generic file
- Use static SHA256_DIGEST_SIZE in function prototype
- Link to v1: https://lore.barebox.org/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PBL: add pbl_sha256()include/crypto/pbl-sha.h pbl/Makefile pbl/decomp.c +1 more+31 -50 replies
2/2ARM: pbl: add PBL support for crypto extensionsarch/arm/crypto/Makefile arch/arm/crypto/sha2-ce-glue.c include/crypto/pbl-sha.h +1 more+58 -20 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/2] PBL: add support for optimized sha256

When chainloading a full barebox from the PBL we have to verify the loaded image with sha256. This can take some time for bigger image, so add support for optimized implementations and ad the ARM64 Crypto Extensions as a first implementation

---
Changes in v2:
- drop ARMv8 specific comment in generic file
- Use static SHA256_DIGEST_SIZE in function prototype
- Link to v1: https://lore.barebox.org/[email protected]

---
Sascha Hauer (2):
PBL: add pbl_sha256()
ARM: pbl: add PBL support for crypto extensions

 arch/arm/crypto/Makefile       |  3 +--
 arch/arm/crypto/sha2-ce-glue.c | 44 ++++++++++++++++++++++++++++++++++++++++++
 include/crypto/pbl-sha.h       | 14 ++++++++++++++
 pbl/Makefile                   |  1 +
 pbl/decomp.c                   |  6 +-----
 pbl/sha256.c                   | 28 +++++++++++++++++++++++++++
 6 files changed, 89 insertions(+), 7 deletions(-)

---
base-commit: 8057f993993040fdd3bea1c42cf8e37af5b6f5d3
change-id: 20260709-pbl-sha256-b60f9893126e

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>