crypto: salsa20-generic - don't unnecessarily use atomic walk
PATCH 1/1 crypto: salsa20-generic - don't unnecessarily use atomic walk
From: Eric Biggers <[email protected]>
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 <[email protected]>
--- crypto/salsa20_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/salsa20_generic.c +1 -1
@@ -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);
Signature · 1 line
2.19.2
Herbert Xu
maintainerQuoted 10 lines · Eric Biggers
From: Eric Biggers <[email protected]>
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 <[email protected]>--- crypto/salsa20_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt