summaryrefslogtreecommitdiffstats
path: root/crypto/salsa20_generic.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-12-15 21:42:52 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-12-23 04:52:44 +0100
commit101b53d91d57ebcc13cb5fbd437b1230457ba9e2 (patch)
tree69a673b91f783b2beeff3fd6ad7d3f9f525dada0 /crypto/salsa20_generic.c
parentcrypto: skcipher - add might_sleep() to skcipher_walk_virt() (diff)
downloadlinux-101b53d91d57ebcc13cb5fbd437b1230457ba9e2.tar.xz
linux-101b53d91d57ebcc13cb5fbd437b1230457ba9e2.zip
crypto: salsa20-generic - don't unnecessarily use atomic walk
salsa20-generic doesn't use SIMD instructions or otherwise disable preemption, so passing atomic=true to skcipher_walk_virt() is unnecessary. 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')
-rw-r--r--crypto/salsa20_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/salsa20_generic.c b/crypto/salsa20_generic.c
index 8c77bc78a09f..00fce32ae17a 100644
--- a/crypto/salsa20_generic.c
+++ b/crypto/salsa20_generic.c
@@ -159,7 +159,7 @@ static int salsa20_crypt(struct skcipher_request *req)
u32 state[16];
int err;
- err = skcipher_walk_virt(&walk, req, true);
+ err = skcipher_walk_virt(&walk, req, false);
salsa20_init(state, ctx, walk.iv);