aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crc32_generic.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-11-12 11:20:26 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-22 18:48:35 +0800
commite87e484d60b0da8302b45f27fe32af1cea02c8d2 (patch)
tree6af31c9ce3eb8abdfd626f7391fc4f82deab925a /crypto/crc32_generic.c
parentcrypto: blake2b - merge blake2 init to api callback (diff)
downloadlinux-dev-e87e484d60b0da8302b45f27fe32af1cea02c8d2.tar.xz
linux-dev-e87e484d60b0da8302b45f27fe32af1cea02c8d2.zip
crypto: blake2b - simplify key init
The keyed init writes the key bytes to the input buffer and does an update. We can do that in two ways: fill the buffer and update immediatelly. This is what current blake2b_init_key does. Any other following _update or _final will continue from the updated state. The other way is to write the key and set the number of bytes to process at the next _update or _final, lazy evaluation. Which leads to the the simplified code in this patch. 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