From: Eric Biggers Date: Thu, 19 Oct 2023 05:53:42 +0000 (-0700) Subject: crypto: hctr2 - stop using alignmask of shash_alg X-Git-Tag: v6.7-rc1~91^2~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6f1514cf72e5d9c2b7c2bc53c43f482b6183d29;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/hctr2.c b/crypto/hctr2.c index 653fde727f0fa..87e7547ad1862 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.