]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
crypto: chacha20 - Remove cra_alignmask
authorEric Biggers <ebiggers@google.com>
Wed, 22 Nov 2017 19:51:37 +0000 (11:51 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Nov 2017 06:33:32 +0000 (17:33 +1100)
Now that crypto_chacha20_setkey() and crypto_chacha20_init() use the
unaligned access macros and crypto_xor() also accepts unaligned buffers,
there is no need to have a cra_alignmask set for chacha20-generic.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/chacha20_generic.c

index b5a10ebf1b8281542b92b26ebb1008470ab55ba2..bb4affbd591c379023a3d84963e30ce38b9804a6 100644 (file)
@@ -105,7 +105,6 @@ static struct skcipher_alg alg = {
        .base.cra_priority      = 100,
        .base.cra_blocksize     = 1,
        .base.cra_ctxsize       = sizeof(struct chacha20_ctx),
-       .base.cra_alignmask     = sizeof(u32) - 1,
        .base.cra_module        = THIS_MODULE,
 
        .min_keysize            = CHACHA20_KEY_SIZE,