summaryrefslogtreecommitdiff
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-06 08:03:56 -0600
committerTom Rini <trini@konsulko.com>2020-05-15 14:47:35 -0400
commit8239be61bdeb228863734a890b02d10006360a65 (patch)
tree07bca9869d896d0f8c9904503e4a4144d098f366 /lib/Kconfig
parent5f20c283f9c232b226758f23b55c761790457b34 (diff)
downloadu-boot-8239be61bdeb228863734a890b02d10006360a65.tar.gz
u-boot-8239be61bdeb228863734a890b02d10006360a65.tar.bz2
u-boot-8239be61bdeb228863734a890b02d10006360a65.zip
lib: Allow MD5 to be enabled in SPL
At present the MD5 option cannot be enabled by board configs since it has no Kconfig name. It is generally enabled, so long as FIT support is present. But not all boards use FIT, particularly in SPL Fix this and add an option for SPL as well. This allows board code to call md5() even if FIT support is not enabled. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 868de3bf3b..c3f694afc0 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -363,7 +363,22 @@ config SHA_PROG_HW_ACCEL
is performed in hardware.
config MD5
- bool
+ bool "Support MD5 algorithm"
+ help
+ This option enables MD5 support. MD5 is an algorithm designed
+ in 1991 that produces a 16-byte digest (or checksum) from its input
+ data. It has a number of vulnerabilities which preclude its use in
+ security applications, but it can be useful for providing a quick
+ checksum of a block of data.
+
+config SPL_MD5
+ bool "Support MD5 algorithm in SPL"
+ help
+ This option enables MD5 support in SPL. MD5 is an algorithm designed
+ in 1991 that produces a 16-byte digest (or checksum) from its input
+ data. It has a number of vulnerabilities which preclude its use in
+ security applications, but it can be useful for providing a quick
+ checksum of a block of data.
config CRC32C
bool