From 304b4acee2f023a67f122d15a37b40ce460244d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20M=C3=BCller?= <smueller@chronox.de>
Date: Tue, 21 Dec 2021 20:31:42 +0100
Subject: [PATCH] crypto: kdf - select SHA-256 required for self-test

The self test of the KDF is based on SHA-256. Thus, this algorithm must
be present as otherwise a warning is issued.

Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index 01b9ca0836a51..649ee1df05c66 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1847,7 +1847,7 @@ config CRYPTO_JITTERENTROPY
 
 config CRYPTO_KDF800108_CTR
 	tristate
-	select CRYPTO_HASH
+	select CRYPTO_SHA256
 
 config CRYPTO_USER_API
 	tristate
-- 
GitLab