diff options
author | Eric Biggers <ebiggers@google.com> | 2023-10-18 22:53:42 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-10-27 18:04:25 +0800 |
commit | 456364410716889832798a54d33efb459e78e20e (patch) | |
tree | b084ffd06e7c3f457c3a07d647fd4719183ba9cf /crypto | |
parent | 649b5691439de493d3fe58c9e5af39270a1c93a7 (diff) | |
download | linux-crypto-456364410716889832798a54d33efb459e78e20e.tar.gz linux-crypto-456364410716889832798a54d33efb459e78e20e.zip |
crypto: hctr2 - stop using alignmask of shash_alg
Now that the shash algorithm type does not support nonzero alignmasks,
shash_alg::base.cra_alignmask is always 0, so OR-ing it into another
value is a no-op.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/hctr2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/hctr2.c b/crypto/hctr2.c index 653fde72..87e7547a 100644 --- a/crypto/hctr2.c +++ b/crypto/hctr2.c @@ -485,8 +485,7 @@ static int hctr2_create_common(struct crypto_template *tmpl, inst->alg.base.cra_blocksize = BLOCKCIPHER_BLOCK_SIZE; inst->alg.base.cra_ctxsize = sizeof(struct hctr2_tfm_ctx) + polyval_alg->statesize * 2; - inst->alg.base.cra_alignmask = xctr_alg->base.cra_alignmask | - polyval_alg->base.cra_alignmask; + inst->alg.base.cra_alignmask = xctr_alg->base.cra_alignmask; /* * The hash function is called twice, so it is weighted higher than the * xctr and blockcipher. |