crypto: powerpc/p10-aes-gcm - Register modules as SIMD
authorDanny Tsen <dtsen@linux.ibm.com>
Mon, 23 Sep 2024 13:30:39 +0000 (09:30 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
commitc954b252dee956d33ee59f594710af28fb3037d9
tree7b8b1d2ee5dad75edddc79cd243b8866b4ccb825
parent7aa747edcb266490f93651dd749c69b7eb8541d9
crypto: powerpc/p10-aes-gcm - Register modules as SIMD

This patch is to fix an issue when simd is not usable that data mismatch
may occur. The fix is to register algs as SIMD modules so that the
algorithm is excecuted when SIMD instructions is usable.  Called
gcm_update() to generate the final digest if needed.

A new module rfc4106(gcm(aes)) is also added.

Fixes: cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")

Signed-off-by: Danny Tsen <dtsen@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/aes-gcm-p10-glue.c