diff options
author | David Sterba <dsterba@suse.com> | 2019-11-12 11:20:26 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-22 18:48:35 +0800 |
commit | aee350238dac550b625416f59ae62c1e76038929 (patch) | |
tree | d36f723852b93f8f941807add4a5b6204c1bec20 /crypto/authencesn.c | |
parent | fc1d9d30c496ebf709c63649c6315c43434b4367 (diff) | |
download | linux-crypto-aee350238dac550b625416f59ae62c1e76038929.tar.gz linux-crypto-aee350238dac550b625416f59ae62c1e76038929.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/authencesn.c')
0 files changed, 0 insertions, 0 deletions