diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2019-11-08 13:22:26 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-07-07 13:26:37 +0200 |
commit | 205f38f4e0760b53ddd133adf99e884d469ed116 (patch) | |
tree | a4a07acc661cc27cca96f8c874a815c8d70b328c /crypto/Kconfig | |
parent | bdaceb44e283aab089a7cd8e52a9a6ea92de7093 (diff) | |
download | linux-crypto-205f38f4e0760b53ddd133adf99e884d469ed116.tar.gz linux-crypto-205f38f4e0760b53ddd133adf99e884d469ed116.zip |
crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation
commit f9c88283df6979e2dccafc20ee0b4d7281819d3e upstream.
This is a straight import of the OpenSSL/CRYPTOGAMS Poly1305 implementation for
MIPS authored by Andy Polyakov, a prior 64-bit only version of which has been
contributed by him to the OpenSSL project. The file 'poly1305-mips.pl' is taken
straight from this upstream GitHub repository [0] at commit
d22ade312a7af958ec955620b0d241cf42c37feb, and already contains all the changes
required to build it as part of a Linux kernel module.
[0] https://github.com/dot-asm/cryptogams
Co-developed-by: Andy Polyakov <appro@cryptogams.org>
Signed-off-by: Andy Polyakov <appro@cryptogams.org>
Co-developed-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: René van Dorst <opensource@vdorst.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | crypto/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index aa1d3478..cd1497e6 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -707,6 +707,11 @@ config CRYPTO_POLY1305_X86_64 in IETF protocols. This is the x86_64 assembler implementation using SIMD instructions. +config CRYPTO_POLY1305_MIPS + tristate "Poly1305 authenticator algorithm (MIPS optimized)" + depends on CPU_MIPS32 || (CPU_MIPS64 && 64BIT) + select CRYPTO_ARCH_HAVE_LIB_POLY1305 + config CRYPTO_MD4 tristate "MD4 digest algorithm" select CRYPTO_HASH |