Skip to contentSkip to conversation

lib/crypto: sha: Update Kconfig help for SHA1 and SHA256

PATCH Applied Eric Biggers 1 participant 2 messages Jul 31, 2025 – Aug 11, 2025

Subsystems (2)
lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

PATCH 1/1 lib/crypto: sha: Update Kconfig help for SHA1 and SHA256

Update the help text for CRYPTO_LIB_SHA1 and CRYPTO_LIB_SHA256 to reflect the addition of HMAC support, and to be consistent with CRYPTO_LIB_SHA512.

---
 lib/crypto/Kconfig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
lib/crypto/Kconfig +5 -5
index c2b65b6a9bb6f..1e6b008f8fca4 100644
@@ -138,12 +138,12 @@ config CRYPTO_LIB_CHACHA20POLY1305
 	select CRYPTO_LIB_UTILS
 
 config CRYPTO_LIB_SHA1
 	tristate
 	help
-	  The SHA-1 library functions.  Select this if your module uses any of
-	  the functions from <crypto/sha1.h>.
+	  The SHA-1 and HMAC-SHA1 library functions.  Select this if your module
+	  uses any of the functions from <crypto/sha1.h>.
 
 config CRYPTO_LIB_SHA1_ARCH
 	bool
 	depends on CRYPTO_LIB_SHA1 && !UML
 	default y if ARM
@@ -155,13 +155,13 @@ config CRYPTO_LIB_SHA1_ARCH
 	default y if X86_64
 
 config CRYPTO_LIB_SHA256
 	tristate
 	help
-	  Enable the SHA-256 library interface. This interface may be fulfilled
-	  by either the generic implementation or an arch-specific one, if one
-	  is available and enabled.
+	  The SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions.
+	  Select this if your module uses any of these functions from
+	  <crypto/sha2.h>.
 
 config CRYPTO_LIB_SHA256_ARCH
 	bool
 	depends on CRYPTO_LIB_SHA256 && !UML
 	default y if ARM && !CPU_V7M

base-commit: d6084bb815c453de27af8071a23163a711586a6c

Signature · 1 line
2.50.1