summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-10-22 01:10:52 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 18:04:29 +0800
commit33fe2fb763a84152a297e97b144bbda19fde67e4 (patch)
tree57ed197a27531843b444df78d47b896906d14ee0 /crypto
parent381a796a187a3c1ab477e7d1e5ea0c6aea1e9404 (diff)
downloadlinux-33fe2fb763a84152a297e97b144bbda19fde67e4.tar.gz
linux-33fe2fb763a84152a297e97b144bbda19fde67e4.tar.bz2
linux-33fe2fb763a84152a297e97b144bbda19fde67e4.zip
crypto: gcm - stop using alignmask of ahash
Now that the alignmask for ahash and shash algorithms is always 0, simplify crypto_gcm_create_common() accordingly. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/gcm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c
index 91ce6e0e2afc..84f7c23d14e4 100644
--- a/crypto/gcm.c
+++ b/crypto/gcm.c
@@ -629,8 +629,7 @@ static int crypto_gcm_create_common(struct crypto_template *tmpl,
inst->alg.base.cra_priority = (ghash->base.cra_priority +
ctr->base.cra_priority) / 2;
inst->alg.base.cra_blocksize = 1;
- inst->alg.base.cra_alignmask = ghash->base.cra_alignmask |
- ctr->base.cra_alignmask;
+ inst->alg.base.cra_alignmask = ctr->base.cra_alignmask;
inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx);
inst->alg.ivsize = GCM_AES_IV_SIZE;
inst->alg.chunksize = ctr->chunksize;