summaryrefslogtreecommitdiff
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-12-27 14:12:07 +0800
committerTom Rini <[email protected]>2022-01-18 08:31:02 -0500
commit7c3fd5c25dd005c5eef54cc629fcbfcf48a04e9a (patch)
tree688d80b3e384015e5a31c7def8d4d77c2df1383f /lib/Kconfig
parentae435aefbcb5064a82ba94ec0b22cfe1315b243c (diff)
lib: add BLAKE2 hash support
The code is cross-ported from BLAKE2 reference implementation (https://github.com/BLAKE2/BLAKE2). With minimal change to remove unused macros/features. Currently there is only one user inside U-boot (btrfs), and since it only utilize BLAKE2B, all other favors are all removed. Signed-off-by: Qu Wenruo <[email protected]> [trini: Rename ROUND to R to avoid clash with <linux/bitops.h> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 35fc9e418c8..38051ccdd36 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -367,6 +367,14 @@ endmenu
menu "Hashing Support"
+config BLAKE2
+ bool "Enable BLAKE2 support"
+ help
+ This option enables support of hashing using BLAKE2B algorithm.
+ The hash is calculated in software.
+ The BLAKE2 algorithm produces a hash value (digest) between 1 and
+ 64 bytes.
+
config SHA1
bool "Enable SHA1 support"
help