summaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2019-11-08 13:22:23 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-17 02:02:41 +0100
commitf0e89bcfbb894e5844cd1bbf6b3cf7c63cb0f5ac (patch)
tree1eda107dc75a677f1c899cd4782758d5154bb598 /lib/crypto
parentcrypto: x86/poly1305 - depend on generic library not generic shash (diff)
downloadlinux-f0e89bcfbb894e5844cd1bbf6b3cf7c63cb0f5ac.tar.xz
linux-f0e89bcfbb894e5844cd1bbf6b3cf7c63cb0f5ac.zip
crypto: x86/poly1305 - expose existing driver as poly1305 library
Implement the arch init/update/final Poly1305 library routines in the accelerated SIMD driver for x86 so they are accessible to users of the Poly1305 library interface as well. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
index a731ea36bd5c..181754615f73 100644
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
@@ -39,6 +39,7 @@ config CRYPTO_LIB_DES
config CRYPTO_LIB_POLY1305_RSIZE
int
+ default 4 if X86_64
default 1
config CRYPTO_ARCH_HAVE_LIB_POLY1305