diff options
author | Eric Biggers <ebiggers@google.com> | 2018-12-15 15:42:52 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-12-22 22:52:44 -0500 |
commit | 101b53d91d57ebcc13cb5fbd437b1230457ba9e2 (patch) | |
tree | 69a673b91f783b2beeff3fd6ad7d3f9f525dada0 /crypto | |
parent | bb648291fc04c49197561939b8bfea0ada42bce3 (diff) |
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.c | 2 |
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) | |||
159 | u32 state[16]; | 159 | u32 state[16]; |
160 | int err; | 160 | int err; |
161 | 161 | ||
162 | err = skcipher_walk_virt(&walk, req, true); | 162 | err = skcipher_walk_virt(&walk, req, false); |
163 | 163 | ||
164 | salsa20_init(state, ctx, walk.iv); | 164 | salsa20_init(state, ctx, walk.iv); |
165 | 165 | ||