diff options
author | Qu Wenruo <wqu@suse.com> | 2021-12-27 14:12:07 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-18 08:31:02 -0500 |
commit | 7c3fd5c25dd005c5eef54cc629fcbfcf48a04e9a (patch) | |
tree | 688d80b3e384015e5a31c7def8d4d77c2df1383f /lib/Makefile | |
parent | ae435aefbcb5064a82ba94ec0b22cfe1315b243c (diff) | |
download | u-boot-7c3fd5c25dd005c5eef54cc629fcbfcf48a04e9a.zip u-boot-7c3fd5c25dd005c5eef54cc629fcbfcf48a04e9a.tar.gz u-boot-7c3fd5c25dd005c5eef54cc629fcbfcf48a04e9a.tar.bz2 |
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 <wqu@suse.com>
[trini: Rename ROUND to R to avoid clash with <linux/bitops.h>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 5ddbc77..7950e84 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -63,6 +63,7 @@ obj-$(CONFIG_$(SPL_)MD5) += md5.o obj-$(CONFIG_ECDSA) += ecdsa/ obj-$(CONFIG_$(SPL_)RSA) += rsa/ obj-$(CONFIG_HASH) += hash-checksum.o +obj-$(CONFIG_BLAKE2) += blake2/blake2b.o obj-$(CONFIG_SHA1) += sha1.o obj-$(CONFIG_SHA256) += sha256.o obj-$(CONFIG_SHA512) += sha512.o |