]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: hctr2 - stop using alignmask of shash_alg
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:42 +0000 (22:53 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:25 +0000 (18:04 +0800)
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>
crypto/hctr2.c

index 653fde727f0fa9f5ea4afc334dc5cba5df5b082e..87e7547ad18623b8f75c6c33f49116e60410a133 100644 (file)
@@ -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.