crypto: powerpc/p10-aes-gcm - Re-write AES/GCM stitched implementation
authorDanny Tsen <dtsen@linux.ibm.com>
Mon, 23 Sep 2024 13:30:38 +0000 (09:30 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
commit7aa747edcb266490f93651dd749c69b7eb8541d9
treefa2b64d265de53b445579a1938409c7c77ef9255
parentfb10c7a84661471cdcc8998d63703211b873c126
crypto: powerpc/p10-aes-gcm - Re-write AES/GCM stitched implementation

Re-write AES/GCM assembly codes with smaller footprints and
small performance gain.  Handling the partial blocks differently that
computes partial block to AES states and re-assembles to a complete
block and then computes a full-block hash.

Added gcm_update() to update the last partial block hash value and
generate the final digest.

Fixes: fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated 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.S