summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-10-19 08:53:41 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 13:04:25 +0300
commit321dfe9777a88cdafe676bb03bab07af26c6cfd8 (patch)
treec4b908c88b78738e40f5c7cce5095ee66670fdd3 /crypto
parent2125c11efd83a5aeb9bf04bcbc83b49e8d7e2afb (diff)
downloadlinux-321dfe9777a88cdafe676bb03bab07af26c6cfd8.tar.xz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/adiantum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/adiantum.c b/crypto/adiantum.c
index aa0f8b3b499a..9ff3376f9ed3 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