From: Ard Biesheuvel Date: Sat, 28 Jan 2017 23:25:35 +0000 (+0000) Subject: crypto: arm64/chacha20 - remove cra_alignmask X-Git-Tag: v4.11-rc1~96^2~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d1108fd747f88a6555e644073ee5629bad610b9;p=thirdparty%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/arch/arm64/crypto/chacha20-neon-glue.c b/arch/arm64/crypto/chacha20-neon-glue.c index a7f2337d46cf0..a7cd575ea2233 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,