Skip to contentSkip to conversation

Rename CONFIG_SPL_FIT_SHAxxx to CONFIG_SPL_SHAxxx

PATCH New Chia-Wei Wang 1 participant 1 message Sep 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Rename CONFIG_SPL_FIT_SHAxxx to CONFIG_SPL_SHAxxx

Rename these options to align the use in common/image-fit.c

	else if (CONFIG_IS_ENABLED(SHA1) && strcmp(algo, "sha1") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA256) && strcmp(algo, "sha256") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA384) && strcmp(algo, "sha384") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA512) && strcmp(algo, "sha512") == 0)
	...

---
v2:
- fix typo in the commit title

 common/spl/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
common/spl/Kconfig +4 -4
index c155a3b5fc..c771ae028b 100644
@@ -439,7 +439,7 @@ config SPL_MD5
 	  applications where images may be changed maliciously, you should
 	  consider SHA256 or SHA384.
 
-config SPL_FIT_SHA1
+config SPL_SHA1
 	bool "Support SHA1"
 	depends on SPL_FIT
 	select SHA1
@@ -451,7 +451,7 @@ config SPL_FIT_SHA1
 	  due to the expanding computing power available to brute-force
 	  attacks. For more security, consider SHA256 or SHA384.
 
-config SPL_FIT_SHA256
+config SPL_SHA256
 	bool "Support SHA256"
 	depends on SPL_FIT
 	select SHA256
@@ -460,7 +460,7 @@ config SPL_FIT_SHA256
 	  checksum is a 256-bit (32-byte) hash value used to check that the
 	  image contents have not been corrupted.
 
-config SPL_FIT_SHA384
+config SPL_SHA384
 	bool "Support SHA384"
 	depends on SPL_FIT
 	select SHA384
@@ -471,7 +471,7 @@ config SPL_FIT_SHA384
 	  image contents have not been corrupted. Use this for the highest
 	  security.
 
-config SPL_FIT_SHA512
+config SPL_SHA512
 	bool "Support SHA512"
 	depends on SPL_FIT
 	select SHA512
Signature · 1 line
2.17.1