crypto: xilinx/zynqmp-sha - remove unnecessary alignmask
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:29 +0000 (22:53 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:24 +0000 (18:04 +0800)
The zynqmp-sha3-384 algorithm sets a nonzero alignmask, but it doesn't
appear to actually need it.  Therefore, stop setting it.  This will
allow this algorithm to keep being registered after alignmask support is
removed from shash.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/xilinx/zynqmp-sha.c

index 426bf1a72ba66b478d9764c05d036f34d68a03ea..b0dbf6263b0dbd9cced78bc62979fedd1253010d 100644 (file)
@@ -182,7 +182,6 @@ static struct zynqmp_sha_drv_ctx sha3_drv_ctx = {
                                     CRYPTO_ALG_NEED_FALLBACK,
                        .cra_blocksize = SHA3_384_BLOCK_SIZE,
                        .cra_ctxsize = sizeof(struct zynqmp_sha_tfm_ctx),
-                       .cra_alignmask = 3,
                        .cra_module = THIS_MODULE,
                }
        }