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

Eric Biggers ebiggers at kernel.org
Fri Oct 16 00:28:09 PDT 2026


On Wed, Oct 14, 2026 at 05:26:02PM +0200, Eric Biggers wrote:
> 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/20261012-libcrypto-4gib-lengths-v1-0-ea566c129a2e@genproof.com
> 
> This series is targeting libcrypto-next.
> 
> Eric Biggers (2):
>   lib/crypto: poly1305: Use size_t length
>   lib/crypto: chacha: Use size_t length

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

- Eric



More information about the linux-riscv mailing list