diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-16 17:26:19 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-11-20 14:26:55 +0800 |
commit | 5e04542a0e0763294e9fced73a149c38c4e0cee5 (patch) | |
tree | e3e8e27f525ffe09547455ee341571ac9be986ce /crypto | |
parent | dd333449d0fb667c5250c42488a7e90470e16c77 (diff) | |
download | linux-5e04542a0e0763294e9fced73a149c38c4e0cee5.tar.gz linux-5e04542a0e0763294e9fced73a149c38c4e0cee5.tar.bz2 linux-5e04542a0e0763294e9fced73a149c38c4e0cee5.zip |
crypto: chacha20-generic - don't unnecessarily use atomic walk
chacha20-generic doesn't use SIMD instructions or otherwise disable
preemption, so passing atomic=true to skcipher_walk_virt() is
unnecessary.
Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: 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')
-rw-r--r-- | crypto/chacha20_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/chacha20_generic.c b/crypto/chacha20_generic.c index 3ae96587caf9..3529521d72a4 100644 --- a/crypto/chacha20_generic.c +++ b/crypto/chacha20_generic.c @@ -81,7 +81,7 @@ int crypto_chacha20_crypt(struct skcipher_request *req) u32 state[16]; int err; - err = skcipher_walk_virt(&walk, req, true); + err = skcipher_walk_virt(&walk, req, false); crypto_chacha20_init(state, ctx, walk.iv); |