summaryrefslogtreecommitdiff
path: root/arch/arm64/crypto/chacha20-neon-glue.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-01-29 02:25:35 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-03 13:16:19 +0300
commit4d1108fd747f88a6555e644073ee5629bad610b9 (patch)
tree40157c1dc598f5146bd4ece06678e29cf3d24f63 /arch/arm64/crypto/chacha20-neon-glue.c
parentccc5d51ef968d0d7634d36afbaf0286126e12f09 (diff)
downloadlinux-4d1108fd747f88a6555e644073ee5629bad610b9.tar.xz
crypto: arm64/chacha20 - remove cra_alignmask
Remove the unnecessary alignmask: it is much more efficient to deal with the misalignment in the core algorithm than relying on the crypto API to copy the data to a suitably aligned buffer. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto/chacha20-neon-glue.c')
-rw-r--r--arch/arm64/crypto/chacha20-neon-glue.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/crypto/chacha20-neon-glue.c b/arch/arm64/crypto/chacha20-neon-glue.c
index a7f2337d46cf..a7cd575ea223 100644
--- a/arch/arm64/crypto/chacha20-neon-glue.c
+++ b/arch/arm64/crypto/chacha20-neon-glue.c
@@ -93,7 +93,6 @@ static struct skcipher_alg alg = {
.base.cra_priority = 300,
.base.cra_blocksize = 1,
.base.cra_ctxsize = sizeof(struct chacha20_ctx),
- .base.cra_alignmask = 1,
.base.cra_module = THIS_MODULE,
.min_keysize = CHACHA20_KEY_SIZE,