diff options
author | Eric Biggers <ebiggers@google.com> | 2019-06-02 22:46:34 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-13 14:31:40 +0800 |
commit | c43a25fe84e197d1ffe35be070731d8cbb1b3333 (patch) | |
tree | ca1a19c24fa5e0f146d6a8e209f0a6b9d0ead3b2 /crypto/arc4.c | |
parent | b99245d90dc649d917c12af38eb989d8557f9054 (diff) | |
download | linux-crypto-c43a25fe84e197d1ffe35be070731d8cbb1b3333.tar.gz linux-crypto-c43a25fe84e197d1ffe35be070731d8cbb1b3333.zip |
crypto: chacha20poly1305 - a few cleanups
- Use sg_init_one() instead of sg_init_table() then sg_set_buf().
- Remove unneeded calls to sg_init_table() prior to scatterwalk_ffwd().
- Simplify initializing the poly tail block.
- Simplify computing padlen.
This doesn't change any actual behavior.
Cc: Martin Willi <martin@strongswan.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions