diff options
author | Eric Biggers <ebiggers@google.com> | 2018-07-23 10:21:29 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-08-03 18:06:04 +0800 |
commit | 2b12123aad7dcc39be85c7ed45e4cd5bf4e24841 (patch) | |
tree | 107d495136c616d4a055743c865dc19f239e2c7d /crypto/salsa20_generic.c | |
parent | e0a679458fcfb6974e5f2c1743fbe08dcf91763e (diff) | |
download | linux-crypto-2b12123aad7dcc39be85c7ed45e4cd5bf4e24841.tar.gz linux-crypto-2b12123aad7dcc39be85c7ed45e4cd5bf4e24841.zip |
crypto: skcipher - remove unnecessary setting of walk->nbytes
Setting 'walk->nbytes = walk->total' in skcipher_walk_first() doesn't
make sense because actually walk->nbytes needs to be set to the length
of the first step in the walk, which may be less than walk->total. This
is done by skcipher_walk_next() which is called immediately afterwards.
Also walk->nbytes was already set to 0 in skcipher_walk_skcipher(),
which is a better default value in case it's forgotten to be set later.
Therefore, remove the unnecessary assignment to walk->nbytes.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/salsa20_generic.c')
0 files changed, 0 insertions, 0 deletions