summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 15:05:34 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-22 16:38:22 (GMT)
commitd70f919e49c9105c49427786a1731feae322cb7a (patch)
tree28f8a708b6cab47b90b3a7c5564809c11d7de930 /common/Kconfig
parent551c3934466503e6c8702df412e2a9ce574557e9 (diff)
downloadu-boot-d70f919e49c9105c49427786a1731feae322cb7a.tar.xz
Kconfig: Add CONFIG_HASH to enable hashing API
At present CONFIG_CMD_HASH enables the 'hash' command which also brings in the hashing API. Some boards may wish to enable the API without the command. Add a separate CONFIG to permit this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 1879aef..5c39663 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -493,4 +493,16 @@ config BOARD_EARLY_INIT_F
endmenu
+menu "Security support"
+
+config HASH
+ bool # "Support hashing API (SHA1, SHA256, etc.)"
+ help
+ This provides a way to hash data in memory using various supported
+ algorithms (such as SHA1, MD5, CRC32). The API is defined in hash.h
+ and the algorithms it supports are defined in common/hash.c. See
+ also CMD_HASH for command-line access.
+
+endmenu
+
source "common/spl/Kconfig"