Skip to content

Commit 33fe2fb

Browse files
ebiggersherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 381a796 commit 33fe2fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crypto/gcm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,7 @@ static int crypto_gcm_create_common(struct crypto_template *tmpl,
629629
inst->alg.base.cra_priority = (ghash->base.cra_priority +
630630
ctr->base.cra_priority) / 2;
631631
inst->alg.base.cra_blocksize = 1;
632-
inst->alg.base.cra_alignmask = ghash->base.cra_alignmask |
633-
ctr->base.cra_alignmask;
632+
inst->alg.base.cra_alignmask = ctr->base.cra_alignmask;
634633
inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx);
635634
inst->alg.ivsize = GCM_AES_IV_SIZE;
636635
inst->alg.chunksize = ctr->chunksize;

0 commit comments

Comments
 (0)