crypto: powerpc/poly1305 - Add SIMD fallback
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 May 2025 09:13:47 +0000 (17:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 May 2025 09:45:22 +0000 (17:45 +0800)
commitc66d7ebbe2fa14e41913adb421090a7426f59786
tree2343e71e4914597f1aa9c719df82b381625c3e3c
parent714ca27e9bf4608fcb1f627cd5599441f448771e
crypto: powerpc/poly1305 - Add SIMD fallback

Add a SIMD fallback path for poly1305-p10 by converting the 2^64
based hash state into a 2^44 base.  In order to ensure that the
generic fallback is actually 2^44, add ARCH_SUPPORTS_INT128 to
powerpc and make poly1305-p10 depend on it.

Fixes: ba8f8624fde2 ("crypto: poly1305-p10 - Glue code for optmized Poly1305 implementation for ppc64le")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/Kconfig
arch/powerpc/lib/crypto/Kconfig
arch/powerpc/lib/crypto/poly1305-p10-glue.c