aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-22 09:34:01 -0700
committerTom Rini <trini@konsulko.com>2023-03-02 15:32:26 -0500
commiteb9a15e4713aee5b4e7a57f16f544dc1fc0be17a (patch)
tree95e5e7a7da3c689659b61dab3951035a5287da7f
parentf47cb0978665fbd5fd25b148a69445dc2be268b0 (diff)
downloadu-boot-eb9a15e4713aee5b4e7a57f16f544dc1fc0be17a.zip
u-boot-eb9a15e4713aee5b4e7a57f16f544dc1fc0be17a.tar.gz
u-boot-eb9a15e4713aee5b4e7a57f16f544dc1fc0be17a.tar.bz2
lib: Add VPL options for SHA1 and SHA256
Add these options so these algorithms can be used in VPL. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/Kconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 1c93f52..0831884 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -579,6 +579,26 @@ config SPL_SHA_PROG_HW_ACCEL
endif
+config VPL_SHA1
+ bool "Enable SHA1 support in VPL"
+ depends on VPL
+ default y if SHA1
+ help
+ This option enables support of hashing using SHA1 algorithm.
+ The hash is calculated in software.
+ The SHA1 algorithm produces a 160-bit (20-byte) hash value
+ (digest).
+
+config VPL_SHA256
+ bool "Enable SHA256 support in VPL"
+ depends on VPL
+ default y if SHA256
+ help
+ This option enables support of hashing using SHA256 algorithm.
+ The hash is calculated in software.
+ The SHA256 algorithm produces a 256-bit (32-byte) hash value
+ (digest).
+
if SHA_HW_ACCEL
config SHA512_HW_ACCEL