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