summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-12-15 23:42:52 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-12-23 06:52:44 +0300
commit101b53d91d57ebcc13cb5fbd437b1230457ba9e2 (patch)
tree69a673b91f783b2beeff3fd6ad7d3f9f525dada0 /crypto
parentbb648291fc04c49197561939b8bfea0ada42bce3 (diff)
downloadlinux-101b53d91d57ebcc13cb5fbd437b1230457ba9e2.tar.xz
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')
-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);