]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: adiantum - stop using alignmask of shash_alg
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:41 +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/adiantum.c

index aa0f8b3b499adc9d3135eb9915345fdc7a351421..9ff3376f9ed35f609f86eb2c92fcd25c1854b435 100644 (file)
@@ -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