mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
0a6bfaa0e6
commit
36cfc05715
@ -504,8 +504,7 @@ static int crypto_ccm_create_common(struct crypto_template *tmpl,
|
|||||||
inst->alg.base.cra_priority = (mac->base.cra_priority +
|
inst->alg.base.cra_priority = (mac->base.cra_priority +
|
||||||
ctr->base.cra_priority) / 2;
|
ctr->base.cra_priority) / 2;
|
||||||
inst->alg.base.cra_blocksize = 1;
|
inst->alg.base.cra_blocksize = 1;
|
||||||
inst->alg.base.cra_alignmask = mac->base.cra_alignmask |
|
inst->alg.base.cra_alignmask = ctr->base.cra_alignmask;
|
||||||
ctr->base.cra_alignmask;
|
|
||||||
inst->alg.ivsize = 16;
|
inst->alg.ivsize = 16;
|
||||||
inst->alg.chunksize = ctr->chunksize;
|
inst->alg.chunksize = ctr->chunksize;
|
||||||
inst->alg.maxauthsize = 16;
|
inst->alg.maxauthsize = 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user