crypto: arm64/aes-ce-ccm - remove cra_alignmask
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 28 Jan 2017 23:25:33 +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/aes-ce-ccm-glue.c

index cc5515dac74a6d80deef3767d4d21bb70a0b76e8..6a7dbc7c83a61d75c02fbd77ba73ea890f00ae69 100644 (file)
@@ -258,7 +258,6 @@ static struct aead_alg ccm_aes_alg = {
                .cra_priority           = 300,
                .cra_blocksize          = 1,
                .cra_ctxsize            = sizeof(struct crypto_aes_ctx),
-               .cra_alignmask          = 7,
                .cra_module             = THIS_MODULE,
        },
        .ivsize         = AES_BLOCK_SIZE,