[PATCH 0/3] crypto: adiantum - Use the ChaCha library

From: Laveesh Bansal

Date: Mon Nov 30 2026 - 00:56:10 EST


This series makes adiantum call the ChaCha library directly
instead of going through a crypto_skcipher child.

This came out of a conversation on another patch:
https://lore.kernel.org/all/20261127184407.GB1974@quark/

I used an LLM for research, the first draft, review and tests.
I did the final code changes and reviews myself.

Laveesh Bansal (3):
crypto: testmgr - Add Adiantum vectors with a partial last ChaCha
block
crypto: adiantum - Derive the subkeys with the ChaCha library
crypto: adiantum - Use the ChaCha library for the stream cipher

crypto/Kconfig | 3 +-
crypto/adiantum.c | 229 ++++++++---------
crypto/testmgr.h | 644 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 758 insertions(+), 118 deletions(-)

I based this series on commit Id 9fb9278d13dca
from master branch of this tree:
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git

This series applies on top of the following:
- setkey: https://lore.kernel.org/all/20261125013553.94480-1-ebiggers@xxxxxxxxxx/
- aeslib: https://lore.kernel.org/all/20261125032407.126634-1-ebiggers@xxxxxxxxxx/

base-commit: 9fb9278d13dca54ce7ecd3254c7df8839e59f03d
prerequisite-patch-id: 5268ec1436ad909487f950765a39a0cc6eac0c6a
prerequisite-patch-id: 0edefdce5d51065803ab84e3492634dcb9e0e53e
--
2.43.0