summaryrefslogtreecommitdiffstats
path: root/crypto/poly1305_generic.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-12-29 17:10:25 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-05 08:43:11 +0100
commit4c7dfbd42183184d20134a795cf152c9701ccddd (patch)
tree9cfa608b19d048b9100cc62cb968a19016f2ceaf /crypto/poly1305_generic.c
parentcrypto: poly1305 - use unaligned access macros to output digest (diff)
downloadlinux-4c7dfbd42183184d20134a795cf152c9701ccddd.tar.xz
linux-4c7dfbd42183184d20134a795cf152c9701ccddd.zip
crypto: poly1305 - remove cra_alignmask
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>
Diffstat (limited to '')
-rw-r--r--crypto/poly1305_generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/poly1305_generic.c b/crypto/poly1305_generic.c
index d752901ba0bc..d92617aeb783 100644
--- a/crypto/poly1305_generic.c
+++ b/crypto/poly1305_generic.c
@@ -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,
},