Consolidate Poly1305 code and add RISC-V optimization
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyIn review
- v23 patches 2 repliesSuperseded
- v13 patches 1 replySuperseded
Changes in v3 from the cover letter
- Added mips/poly1305-core.S and riscv/poly1305-core.S to 'targets'. This fixed a bug where the perlasm build step was always running.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib/crypto: poly1305: Remove unused function poly1305_is_arch_optimized()include/ lib/ lib/ +3 more | +0 | 0 replies | |
| 2/3 | lib/crypto: poly1305: Consolidate into single modulecrypto/ include/ lib/ +25 more | +299 | 0 replies | |
| 3/3 | lib/crypto: riscv/poly1305: Import OpenSSL/CRYPTOGAMS implementationlib/ lib/ lib/ +1 more | +877 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Ard Biesheuvel |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] Consolidate Poly1305 code and add RISC-V optimization
This series is targeting libcrypto-next. It can also be retrieved from:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git poly1305-v3
This series simplifies and optimizes the organization of the Poly1305 code by consolidating it into a single module. This follows the example of SHA-1, SHA-256, SHA-512, CRC32, etc.
Since the RISC-V Poly1305 patch has had a moving target, I also rebased it on top of this series and included it as patch 3.
Changed in v3:
- Added mips/poly1305-core.S and riscv/poly1305-core.S to 'targets'. This fixed a bug where the perlasm build step was always running.
Changed in v2:
- Added missing 'FORCE' to the make rules for mips/poly1305-core.S and riscv/poly1305-core.S.
Eric Biggers (2):
lib/crypto: poly1305: Remove unused function
poly1305_is_arch_optimized()
lib/crypto: poly1305: Consolidate into single module
Zhihang Shao (1):
lib/crypto: riscv/poly1305: Import OpenSSL/CRYPTOGAMS implementation
crypto/Kconfig | 2 +
include/crypto/internal/poly1305.h | 16 +-
include/crypto/poly1305.h | 9 -
lib/crypto/Kconfig | 53 +-
lib/crypto/Makefile | 73 +-
lib/crypto/arm/Kconfig | 5 -
lib/crypto/arm/Makefile | 18 -
lib/crypto/arm/poly1305-armv4.pl | 3 +-
lib/crypto/arm/poly1305-glue.c | 76 --
lib/crypto/arm/poly1305.h | 53 ++
lib/crypto/arm64/Kconfig | 6 -
lib/crypto/arm64/Makefile | 13 -
lib/crypto/arm64/poly1305-armv8.pl | 3 +
lib/crypto/arm64/poly1305-glue.c | 74 --
lib/crypto/arm64/poly1305.h | 50 ++
lib/crypto/mips/Kconfig | 5 -
lib/crypto/mips/Makefile | 14 -
lib/crypto/mips/poly1305-glue.c | 33 -
lib/crypto/mips/poly1305-mips.pl | 8 +-
lib/crypto/mips/poly1305.h | 14 +
lib/crypto/poly1305-generic.c | 25 -
lib/crypto/poly1305.c | 81 +-
lib/crypto/powerpc/Kconfig | 8 -
lib/crypto/powerpc/Makefile | 3 -
.../{poly1305-p10-glue.c => poly1305.h} | 40 +-
lib/crypto/riscv/poly1305-riscv.pl | 847 ++++++++++++++++++
lib/crypto/riscv/poly1305.h | 14 +
lib/crypto/x86/Kconfig | 6 -
lib/crypto/x86/Makefile | 10 -
lib/crypto/x86/poly1305-x86_64-cryptogams.pl | 33 +-
.../x86/{poly1305_glue.c => poly1305.h} | 47 +-
31 files changed, 1176 insertions(+), 466 deletions(-)
delete mode 100644 lib/crypto/arm/poly1305-glue.c
create mode 100644 lib/crypto/arm/poly1305.h
delete mode 100644 lib/crypto/arm64/poly1305-glue.c
create mode 100644 lib/crypto/arm64/poly1305.h
delete mode 100644 lib/crypto/mips/poly1305-glue.c
create mode 100644 lib/crypto/mips/poly1305.h
delete mode 100644 lib/crypto/poly1305-generic.c
rename lib/crypto/powerpc/{poly1305-p10-glue.c => poly1305.h} (63%)
create mode 100644 lib/crypto/riscv/poly1305-riscv.pl
create mode 100644 lib/crypto/riscv/poly1305.h
rename lib/crypto/x86/{poly1305_glue.c => poly1305.h} (83%)base-commit: 5012bd2dc6ab0c4499923b3b6c6113def9b0c88b
Signature · 1 line
2.50.1