Skip to content

Commit

Permalink
crypto: salsa20-generic - don't unnecessarily use atomic walk
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ebiggers authored and herbertx committed Dec 23, 2018
1 parent bb64829 commit 101b53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/salsa20_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 101b53d

Please sign in to comment.