mail archive of the barebox mailing list
 help / color / mirror / Atom feed
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 2/3] PBL: rename sha256.c to generic sha.c
Date: Wed, 30 Sep 2026 10:28:56 +0200	[thread overview]
Message-ID: <20260930-crypto-pbl-sha384-v2-2-1cedca8ce7c6@pengutronix.de> (raw)
In-Reply-To: <20260930-crypto-pbl-sha384-v2-0-1cedca8ce7c6@pengutronix.de>

Remove the references to SHA-256 to avoid name confusion when adding
support for SHA-512 and SHA-384.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>

---
Changes in v2:
- New patch
---
 pbl/Makefile            | 2 +-
 pbl/{sha256.c => sha.c} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbl/Makefile b/pbl/Makefile
index 9cbd4816402c..bef313df10cc 100644
--- a/pbl/Makefile
+++ b/pbl/Makefile
@@ -7,7 +7,7 @@ pbl-$(CONFIG_PBL_CONSTRUCTORS) += ctors.o
 pbl-y += misc.o
 pbl-y += string.o
 pbl-y += malloc.o
-pbl-y += sha256.o
+pbl-y += sha.o
 pbl-$(CONFIG_HAVE_IMAGE_COMPRESSION) += decomp.o
 pbl-$(CONFIG_LIBFDT) += fdt.o
 pbl-$(CONFIG_PBL_CONSOLE) += console.o
diff --git a/pbl/sha256.c b/pbl/sha.c
similarity index 87%
rename from pbl/sha256.c
rename to pbl/sha.c
index 04cc64a77d85..f08e554ea4c8 100644
--- a/pbl/sha256.c
+++ b/pbl/sha.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * pbl_sha256() - one-shot SHA-256 for the PBL, picking the best available
+ * pbl_sha*() - one-shot SHA functions for the PBL, picking the best available
  * implementation.
  */
 

-- 
2.47.3




  parent 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 [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 ` Michael Tretter [this message]
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-2-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