aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crc32_generic.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-11-12 11:20:25 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-22 18:48:34 +0800
commite374969565472824eba4669dea4a23ad2edb414f (patch)
tree46b374c2813cb38469a4a4a5c0dcb6313417dfc4 /crypto/crc32_generic.c
parentcrypto: blake2b - merge _final implementation to callback (diff)
downloadlinux-dev-e374969565472824eba4669dea4a23ad2edb414f.tar.xz
linux-dev-e374969565472824eba4669dea4a23ad2edb414f.zip
crypto: blake2b - merge blake2 init to api callback
The call chain from blake2b_init can be simplified because the param block is effectively zeros, besides the key. - blake2b_init0 zeroes state and sets IV - blake2b_init sets up param block with defaults (key and some 1s) - init with key, write it to the input buffer and recalculate state So the compact way is to zero out the state and initialize index 0 of the state directly with the non-zero values and the key. Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crc32_generic.c')
0 files changed, 0 insertions, 0 deletions