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: ccm - stop using alignmask of ahash

Now that the alignmask for ahash and shash algorithms is always 0,
simplify crypto_ccm_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
36cfc057 0a6bfaa0

+1 -2
+1 -2
crypto/ccm.c
··· 504 504 inst->alg.base.cra_priority = (mac->base.cra_priority + 505 505 ctr->base.cra_priority) / 2; 506 506 inst->alg.base.cra_blocksize = 1; 507 - inst->alg.base.cra_alignmask = mac->base.cra_alignmask | 508 - ctr->base.cra_alignmask; 507 + inst->alg.base.cra_alignmask = ctr->base.cra_alignmask; 509 508 inst->alg.ivsize = 16; 510 509 inst->alg.chunksize = ctr->chunksize; 511 510 inst->alg.maxauthsize = 16;