From: Eric Biggers Date: Thu, 19 Oct 2023 05:53:41 +0000 (-0700) Subject: crypto: adiantum - stop using alignmask of shash_alg X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=321dfe9777a88cdafe676bb03bab07af26c6cfd8;p=linux.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/adiantum.c b/crypto/adiantum.c index aa0f8b3b499ad..9ff3376f9ed35 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