]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
crypto: arm64/chacha20 - remove cra_alignmask
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 28 Jan 2017 23:25:35 +0000 (23:25 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2017 10:16:19 +0000 (18:16 +0800)
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>
arch/arm64/crypto/chacha20-neon-glue.c

index a7f2337d46cf0bbe154c160eedd14251e4811e6b..a7cd575ea223348e6d2fa99dea5028e7202d04b6 100644 (file)
@@ -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,