aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/blake2s.c
AgeCommit message (Collapse)AuthorFilesLines
2021-07-16crypto: lib - rename 'mod_init' & 'mod_exit' functions to be module-specificRandy Dunlap1-4/+4
Rename module_init & module_exit functions that are named "mod_init" and "mod_exit" so that they are unique in both the System.map file and in initcall_debug output instead of showing up as almost anonymous "mod_init". This is helpful for debugging and in determining how long certain module_init calls take to execute. Signed-off-by: Randy Dunlap <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected] Cc: Jason A. Donenfeld <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2021-01-03crypto: blake2s - move update and final logic to internal/blake2s.hEric Biggers1-40/+8
Move most of blake2s_update() and blake2s_final() into new inline functions __blake2s_update() and __blake2s_final() in include/crypto/internal/blake2s.h so that this logic can be shared by the shash helper functions. This will avoid duplicating this logic between the library and shash implementations. Signed-off-by: Eric Biggers <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-12-04crypto: lib/blake2s - Move selftest prototype into header fileHerbert Xu1-2/+0
This patch fixes a missing prototype warning on blake2s_selftest. Reported-by: kernel test robot <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2019-11-17crypto: blake2s - generic C library implementation and selftestJason A. Donenfeld1-0/+126
The C implementation was originally based on Samuel Neves' public domain reference implementation but has since been heavily modified for the kernel. We're able to do compile-time optimizations by moving some scaffolding around the final function into the header file. Information: https://blake2.net/ Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Samuel Neves <[email protected]> Co-developed-by: Samuel Neves <[email protected]> [ardb: - move from lib/zinc to lib/crypto - remove simd handling - rewrote selftest for better coverage - use fixed digest length for blake2s_hmac() and rename to blake2s256_hmac() ] Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>