summaryrefslogtreecommitdiff
path: root/lib/blake2
AgeCommit message (Collapse)AuthorFilesLines
2022-01-18lib: add BLAKE2 hash supportQu Wenruo2-0/+474
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>