Skip to content

Commit

Permalink
crypto: poly1305 - remove cra_alignmask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Biggers authored and Herbert Xu committed Jan 5, 2018
1 parent fcfbeed commit 4c7dfbd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crypto/poly1305_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 4c7dfbd

Please sign in to comment.