summaryrefslogtreecommitdiffstats
path: root/crypto/sha4.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-03-22 10:00:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-03-28 12:02:41 +0200
commitec3dd1aea7c178e9d18e385b85392d63c49b4f23 (patch)
tree88852249f054ee99124d7a335e929f542e265f17 /crypto/sha4.c
parent32758bab2b95023b1c0970072db8d3a1faacc445 (diff)
downloadbarebox-ec3dd1aea7c178e9d18e385b85392d63c49b4f23.tar.gz
barebox-ec3dd1aea7c178e9d18e385b85392d63c49b4f23.tar.xz
crypto: Followup to crypto symbol renaming for algo registration
The symbols were renamed to a nicer and consistent naming scheme, but I missed to adapt a few usages. This was done using: perl -p -i -e 's/\bCONFIG_(?:DIGEST_)?(MD5|SHA1|SHA224|SHA256|SHA384|SHA512|HMAC)\b/CONFIG_HAVE_DIGEST_$1/;' crypto/hmac.c crypto/sha2.c crypto/sha4.c Now there don't seem to be any old names left: Reported-by: Renaud Barbier <Renaud.Barbier@ametek.com> Fixes: 03fb5524b064 ("crypto: consistently name the algo digest symbols HAVE_DIGEST_...") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.barebox.org/20220322090007.233155-1-u.kleine-koenig@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto/sha4.c')
-rw-r--r--crypto/sha4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/sha4.c b/crypto/sha4.c
index a2e90c0a2c..8c94f5011d 100644
--- a/crypto/sha4.c
+++ b/crypto/sha4.c
@@ -258,7 +258,7 @@ static struct digest_algo m384 = {
static int sha384_digest_register(void)
{
- if (!IS_ENABLED(CONFIG_SHA384))
+ if (!IS_ENABLED(CONFIG_HAVE_DIGEST_SHA384))
return 0;
return digest_algo_register(&m384);
@@ -284,7 +284,7 @@ static struct digest_algo m512 = {
static int sha512_digest_register(void)
{
- if (!IS_ENABLED(CONFIG_SHA512))
+ if (!IS_ENABLED(CONFIG_HAVE_DIGEST_SHA512))
return 0;
return digest_algo_register(&m512);