summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-10-18 22:53:41 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 18:04:25 +0800
commit649b5691439de493d3fe58c9e5af39270a1c93a7 (patch)
treeb62ea7037841e910ca44c15f6c37d47c9d72b46c
parent4d5e826cf1d0aa75049f86e7f344c81e7e9085f4 (diff)
downloadlinux-crypto-649b5691439de493d3fe58c9e5af39270a1c93a7.tar.gz
linux-crypto-649b5691439de493d3fe58c9e5af39270a1c93a7.zip
crypto: adiantum - 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>
-rw-r--r--crypto/adiantum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/adiantum.c b/crypto/adiantum.c
index aa0f8b3b..9ff3376f 100644
--- a/crypto/adiantum.c
+++ b/crypto/adiantum.c
@@ -590,8 +590,7 @@ static int adiantum_create(struct crypto_template *tmpl, struct rtattr **tb)
inst->alg.base.cra_blocksize = BLOCKCIPHER_BLOCK_SIZE;
inst->alg.base.cra_ctxsize = sizeof(struct adiantum_tfm_ctx);
- inst->alg.base.cra_alignmask = streamcipher_alg->base.cra_alignmask |
- hash_alg->base.cra_alignmask;
+ inst->alg.base.cra_alignmask = streamcipher_alg->base.cra_alignmask;
/*
* The block cipher is only invoked once per message, so for long
* messages (e.g. sectors for disk encryption) its performance doesn't