projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb64829
)
crypto: salsa20-generic - don't unnecessarily use atomic walk
author
Eric Biggers
<ebiggers@google.com>
Sat, 15 Dec 2018 20:42:52 +0000
(12:42 -0800)
committer
Herbert 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
patch
|
blob
|
history
diff --git
a/crypto/salsa20_generic.c
b/crypto/salsa20_generic.c
index 8c77bc78a09f2693a1b8acf4e8748d10ced93da7..00fce32ae17af9fa630db24e2ff2ee4f8b7bf547 100644
(file)
--- 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,
tru
e);
+ err = skcipher_walk_virt(&walk, req,
fals
e);
salsa20_init(state, ctx, walk.iv);