Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eric Biggers and committed by
Herbert Xu
33fe2fb7 381a796a

+1 -2
+1 -2
crypto/gcm.c
··· 629 629 inst->alg.base.cra_priority = (ghash->base.cra_priority + 630 630 ctr->base.cra_priority) / 2; 631 631 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; 634 633 inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx); 635 634 inst->alg.ivsize = GCM_AES_IV_SIZE; 636 635 inst->alg.chunksize = ctr->chunksize;