crypto: poly1305 - remove cra_alignmask
authorEric Biggers <ebiggers@google.com>
Fri, 29 Dec 2017 16:10:25 +0000 (10:10 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Jan 2018 07:43:11 +0000 (18:43 +1100)
Now that nothing in poly1305-generic assumes any special alignment,
remove the cra_alignmask so that the crypto API does not have to
unnecessarily align the buffers.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/poly1305_generic.c

index d752901ba0bcaad1e33861392dc8bf825bc5acb6..d92617aeb783d7fff6c931be1287cf40bf2c2e9d 100644 (file)
@@ -287,7 +287,6 @@ static struct shash_alg poly1305_alg = {
                .cra_driver_name        = "poly1305-generic",
                .cra_priority           = 100,
                .cra_flags              = CRYPTO_ALG_TYPE_SHASH,
-               .cra_alignmask          = sizeof(u32) - 1,
                .cra_blocksize          = POLY1305_BLOCK_SIZE,
                .cra_module             = THIS_MODULE,
        },