OSDN Git Service

crypto: arm/chacha20 - limit the preemption-disabled section
authorEric Biggers <ebiggers@google.com>
Sat, 17 Nov 2018 01:26:23 +0000 (17:26 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:56 +0000 (14:26 +0800)
commitbe2830b15b60011845ad701076511e8b93b2fd76
tree67c73b7ecd50df0b5a33fcb5d62fd899c47e20c0
parentaa7624093cb7fbf4fea95e612580d8d29a819f67
crypto: arm/chacha20 - limit the preemption-disabled section

To improve responsivesess, disable preemption for each step of the walk
(which is at most PAGE_SIZE) rather than for the entire
encryption/decryption operation.

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/chacha20-neon-glue.c