Skip to contentSkip to conversation

Kconfig: Drop duplicate 'select SHA512' instances

PATCH In review Tom Rini 2 participants 3 messages Sep 9, 2021 – Sep 10, 2021

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Kconfig: Drop duplicate 'select SHA512' instances

When dropping SHA512_ALGO in general, we didn't catch some cases where an option was selecting both SHA512 and SHA512_ALGO and caused them to select SHA512 twice. Kconfig doesn't complain, but this is still wrong and should be corrected.

Fixes e60e44993120 ("lib: Drop SHA512_ALGO in lieu of SHA512")
---
 lib/crypt/Kconfig      | 1 -
 lib/efi_loader/Kconfig | 1 -
 2 files changed, 2 deletions(-)
lib/crypt/Kconfig +0 -1
index 6a5002964224..a59d5c7d1d54 100644
@@ -20,7 +20,6 @@ config CRYPT_PW_SHA256
 config CRYPT_PW_SHA512
 	bool "Provide sha512crypt"
 	select SHA512
-	select SHA512
 	help
 	  Enables support for the sha512crypt password-hashing algorithm.
 	  The prefix is "$6$".
lib/efi_loader/Kconfig +0 -1
index 08463251cdf1..edd4ae29f163 100644
@@ -323,7 +323,6 @@ config EFI_TCG2_PROTOCOL
 	depends on TPM_V2
 	select SHA1
 	select SHA256
-	select SHA512
 	select SHA384
 	select SHA512
 	select HASH
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Tom Rini

When dropping SHA512_ALGO in general, we didn't catch some cases where an option was selecting both SHA512 and SHA512_ALGO and caused them to select SHA512 twice. Kconfig doesn't complain, but this is still wrong and should be corrected.

Fixes e60e44993120 ("lib: Drop SHA512_ALGO in lieu of SHA512")
Quoted 30 lines
---
  lib/crypt/Kconfig      | 1 -
  lib/efi_loader/Kconfig | 1 -
  2 files changed, 2 deletions(-)
lib/crypt/Kconfig +0 -1
index 6a5002964224..a59d5c7d1d54 100644
@@ -20,7 +20,6 @@ config CRYPT_PW_SHA256
  config CRYPT_PW_SHA512
  	bool "Provide sha512crypt"
  	select SHA512
-	select SHA512
  	help
  	  Enables support for the sha512crypt password-hashing algorithm.
  	  The prefix is "$6$".
lib/efi_loader/Kconfig +0 -1
index 08463251cdf1..edd4ae29f163 100644
@@ -323,7 +323,6 @@ config EFI_TCG2_PROTOCOL
  	depends on TPM_V2
  	select SHA1
  	select SHA256
-	select SHA512
  	select SHA384
  	select SHA512
  	select HASH
author
#2 lore raw
Quoted 11 lines · Alex G.
Quoted 8 lines · Tom Rini

When dropping SHA512_ALGO in general, we didn't catch some cases where an option was selecting both SHA512 and SHA512_ALGO and caused them to select SHA512 twice. Kconfig doesn't complain, but this is still wrong and should be corrected.

Fixes e60e44993120 ("lib: Drop SHA512_ALGO in lieu of SHA512")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom