diff options
author | Eric Biggers <ebiggers@google.com> | 2023-10-22 01:10:50 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-10-27 18:04:29 +0800 |
commit | ec6970b74f360ffd94cba9b6cb8d0fcf39c896b0 (patch) | |
tree | 120c65c25d70e377cd3a3611e3bf65d007d76356 /crypto/ccm.c | |
parent | a0c6df49e7fe8861643a75379c7a349acfcf142e (diff) | |
download | linux-crypto-ec6970b74f360ffd94cba9b6cb8d0fcf39c896b0.tar.gz linux-crypto-ec6970b74f360ffd94cba9b6cb8d0fcf39c896b0.zip |
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>
Diffstat (limited to 'crypto/ccm.c')
-rw-r--r-- | crypto/ccm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c index dd7aed63..36f0acec 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -504,8 +504,7 @@ static int crypto_ccm_create_common(struct crypto_template *tmpl, inst->alg.base.cra_priority = (mac->base.cra_priority + ctr->base.cra_priority) / 2; inst->alg.base.cra_blocksize = 1; - inst->alg.base.cra_alignmask = mac->base.cra_alignmask | - ctr->base.cra_alignmask; + inst->alg.base.cra_alignmask = ctr->base.cra_alignmask; inst->alg.ivsize = 16; inst->alg.chunksize = ctr->chunksize; inst->alg.maxauthsize = 16; |