mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laveesh Bansal <laveeshb@laveeshbansal.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] crypto: adiantum - Use the ChaCha library
Date: Mon, 30 Nov 2026 20:39:43 -0800	[thread overview]
Message-ID: <20261201043945.50022-1-laveeshb@laveeshbansal.com> (raw)

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/

v1: https://lore.kernel.org/all/20261130055539.8278-1-laveeshb@laveeshbansal.com/

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

Changes in v2:
I addressed feedback on v1.
https://lore.kernel.org/all/20261130194303.GB16775@google.com/
https://lore.kernel.org/all/20261130194012.GA16775@google.com/

 - Merged patches 2 and 3.
 - Updated adiantum to not be a template. It registers two skcipher
   algorithms -- adiantum(xchacha12,aes) and adiantum(xchacha20,aes).
 - In-place requests under CONFIG_HIGHMEM map the memory only once.
 - 'buf' is zeroized.
 - Based on the current cryptodev master because the base in v1 --
   commit 9fb9278d13dca -- is no longer in it.

Laveesh Bansal (2):
  crypto: testmgr - Add Adiantum vectors with a partial last ChaCha
    block
  crypto: adiantum - Use the ChaCha library

 crypto/Kconfig    |   3 +-
 crypto/adiantum.c | 336 ++++++++++--------------
 crypto/testmgr.h  | 644 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 782 insertions(+), 201 deletions(-)


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

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


             reply	other threads:[~2026-12-01  4:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  4:39 Laveesh Bansal [this message]
2026-12-01  4:39 ` [PATCH v2 1/2] crypto: testmgr - Add Adiantum vectors with a partial last ChaCha block Laveesh Bansal
2026-12-01  4:39 ` [PATCH v2 2/2] crypto: adiantum - Use the ChaCha library Laveesh Bansal
2026-12-01  5:17   ` Eric Biggers
2026-12-01  8:11     ` Laveesh Bansal

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=20261201043945.50022-1-laveeshb@laveeshbansal.com \
    --to=laveeshb@laveeshbansal.com \
    --cc=davem@davemloft.net \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®