Skip to content

lib/crypto: Use size_t lengths for Poly1305 and ChaCha

Eric Biggers linux-arm-kernel linux-crypto linux-mips linux-riscv linuxppc-dev 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2lib/crypto: poly1305: Use size_t lengthinclude/crypto/internal/poly1305.h include/crypto/poly1305.h lib/crypto/arm/poly1305.h +9 more+39 -360 repliesApplied
2/2lib/crypto: chacha: Use size_t lengthinclude/crypto/chacha.h lib/crypto/arm/chacha-scalar-core.S lib/crypto/arm/chacha.h +8 more+52 -530 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchVladimir Kukharenko
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] lib/crypto: Use size_t lengths for Poly1305 and ChaCha

This series upgrades the Poly1305 and ChaCha functions to use size_t lengths, matching the rest of the crypto library.

It also fixes the (not currently reached) handling of lengths above S32_MAX bytes, and (not currently known to matter in practice) the assembly functions depending on unspecified high register bits.

This more comprehensively addresses the issues identified in
https://lore.kernel.org/r/[email protected]

This series is targeting libcrypto-next.

Eric Biggers (2):
lib/crypto: poly1305: Use size_t length
lib/crypto: chacha: Use size_t length

 include/crypto/chacha.h                |  6 ++--
 include/crypto/internal/poly1305.h     |  4 +--
 include/crypto/poly1305.h              |  4 +--
 lib/crypto/arm/chacha-scalar-core.S    |  2 +-
 lib/crypto/arm/chacha.h                | 14 ++++-----
 lib/crypto/arm/poly1305.h              |  8 +++---
 lib/crypto/arm64/chacha.h              | 10 +++----
 lib/crypto/arm64/poly1305.h            |  6 ++--
 lib/crypto/chacha.c                    |  8 +++---
 lib/crypto/mips/chacha.h               |  5 ++--
 lib/crypto/mips/poly1305.h             |  2 +-
 lib/crypto/poly1305-donna32.c          |  2 +-
 lib/crypto/poly1305-donna64.c          |  2 +-
 lib/crypto/poly1305.c                  | 10 +++----
 lib/crypto/powerpc/chacha-p10le-8x.S   |  2 +-
 lib/crypto/powerpc/chacha.h            | 10 +++----
 lib/crypto/powerpc/poly1305-p10le_64.S | 23 ++++++++-------
 lib/crypto/powerpc/poly1305.h          |  8 ++++--
 lib/crypto/riscv/chacha.h              |  6 ++--
 lib/crypto/riscv/poly1305.h            |  2 +-
 lib/crypto/s390/chacha.h               |  2 +-
 lib/crypto/x86/chacha.h                | 40 +++++++++++++-------------
 lib/crypto/x86/poly1305.h              |  4 +--
 23 files changed, 91 insertions(+), 89 deletions(-)

base-commit: 40f47fa10a1d19c74f48a13d97b2eb19d5fb938d

Signature · 1 line
2.56.0