crypto: salsa20-generic - don't unnecessarily use atomic walk
authorEric Biggers <ebiggers@google.com>
Sat, 15 Dec 2018 20:42:52 +0000 (12:42 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:44 +0000 (11:52 +0800)
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>
crypto/salsa20_generic.c

index 8c77bc78a09f2693a1b8acf4e8748d10ced93da7..00fce32ae17af9fa630db24e2ff2ee4f8b7bf547 100644 (file)
@@ -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);