From: Eric Biggers <ebiggers@kernel.org>
To: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, x86@kernel.org
Subject: [PATCH 0/9] Remove per-architecture poly1305 shash glue code
Date: Sat, 12 Apr 2025 21:54:12 -0700 [thread overview]
Message-ID: <20250413045421.55100-1-ebiggers@kernel.org> (raw)
This series removes the per-architecture poly1305 shash glue code and
re-implements the poly1305 shashes on top of the Poly1305 library
functions. This ends up being much simpler, and it is how it should
have been done originally. This follows similar changes to crc32,
crc32c, and chacha20.
This series also makes the Poly1305 library be optimized on PowerPC.
Previously the PowerPC-optimized Poly1305 code only supported shash.
Eric Biggers (9):
crypto: powerpc/poly1305 - implement library instead of shash
crypto: poly1305 - centralize the shash wrappers for arch code
crypto: arm/poly1305 - remove redundant shash algorithm
crypto: arm64/poly1305 - remove redundant shash algorithm
crypto: mips/poly1305 - drop redundant dependency on CONFIG_MIPS
crypto: mips/poly1305 - remove redundant shash algorithm
crypto: x86/poly1305 - remove redundant shash algorithm
crypto: x86/poly1305 - don't select CRYPTO_LIB_POLY1305_GENERIC
crypto: poly1305 - remove rset and sset fields of poly1305_desc_ctx
arch/arm/crypto/Kconfig | 6 -
arch/arm/crypto/poly1305-glue.c | 170 ++----------------------
arch/arm64/crypto/Kconfig | 6 -
arch/arm64/crypto/poly1305-glue.c | 143 ++------------------
arch/mips/crypto/Kconfig | 6 -
arch/mips/crypto/poly1305-glue.c | 120 +----------------
arch/powerpc/crypto/Kconfig | 11 +-
arch/powerpc/crypto/poly1305-p10-glue.c | 134 ++++++-------------
arch/x86/crypto/Kconfig | 8 --
arch/x86/crypto/poly1305_glue.c | 99 ++------------
crypto/Makefile | 3 +-
crypto/poly1305.c | 153 +++++++++++++++++++++
crypto/poly1305_generic.c | 149 ---------------------
include/crypto/poly1305.h | 13 +-
lib/crypto/poly1305.c | 2 -
15 files changed, 242 insertions(+), 781 deletions(-)
create mode 100644 crypto/poly1305.c
delete mode 100644 crypto/poly1305_generic.c
base-commit: 3be3f70ee95da03a87d94c4a714ee679a5c7b34d
--
2.49.0
next reply other threads:[~2025-04-13 4:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-13 4:54 Eric Biggers [this message]
2025-04-13 4:54 ` [PATCH 1/9] crypto: powerpc/poly1305 - implement library instead of shash Eric Biggers
2025-04-13 4:54 ` [PATCH 2/9] crypto: poly1305 - centralize the shash wrappers for arch code Eric Biggers
2025-04-13 4:54 ` [PATCH 3/9] crypto: arm/poly1305 - remove redundant shash algorithm Eric Biggers
2025-04-13 4:54 ` [PATCH 4/9] crypto: arm64/poly1305 " Eric Biggers
2025-04-13 4:54 ` [PATCH 5/9] crypto: mips/poly1305 - drop redundant dependency on CONFIG_MIPS Eric Biggers
2025-04-13 4:54 ` [PATCH 6/9] crypto: mips/poly1305 - remove redundant shash algorithm Eric Biggers
2025-04-13 4:54 ` [PATCH 7/9] crypto: x86/poly1305 " Eric Biggers
2025-04-13 4:54 ` [PATCH 8/9] crypto: x86/poly1305 - don't select CRYPTO_LIB_POLY1305_GENERIC Eric Biggers
2025-04-13 4:54 ` [PATCH 9/9] crypto: poly1305 - remove rset and sset fields of poly1305_desc_ctx Eric Biggers
2025-04-16 8:00 ` [PATCH 0/9] Remove per-architecture poly1305 shash glue code Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250413045421.55100-1-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).