From: Eric Biggers <ebiggers@kernel.org>
To: Laveesh Bansal <laveeshb@laveeshbansal.com>
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: Re: [PATCH v3 1/2] crypto: testmgr - Add Adiantum vectors with a partial last ChaCha block
Date: Wed, 2 Dec 2026 02:21:24 +0000 [thread overview]
Message-ID: <20261202022124.GB2427638@google.com> (raw)
In-Reply-To: <20261201080825.56171-2-laveeshb@laveeshbansal.com>
On Tue, Dec 01, 2026 at 12:08:24AM -0800, Laveesh Bansal wrote:
> None of the existing adiantum vectors has full ChaCha blocks
> followed by a partial one. testmgr does not have any other
> implementation to compare adiantum against.
>
> Add new 145 and 1041-byte vectors. These end in a 1-byte partial
> block after full blocks.
Maybe go with 175 instead of 145, so that more than one partial block
length gets tested?
> diff --git a/crypto/testmgr.h b/crypto/testmgr.h
> index 14b0e1181b7b3..8635a388eb679 100644
> --- a/crypto/testmgr.h
> +++ b/crypto/testmgr.h
> @@ -31786,6 +31786,328 @@ static const struct cipher_testvec adiantum_xchacha12_aes_tv_template[] = {
> "\x60\x1f\x88\xae\xbf\x14\x2d\x05"
> "\x4c\x60\x85\x8a\x45\xac\x0f\xc2",
> .len = 4096,
> + }, {
> + .key = "\x13\x40\x42\xb6\xab\xb3\x70\x17"
> + "\x03\xcf\x23\x3d\x9a\xb8\xed\x7b"
> + "\xd6\xcd\x7d\x9a\x32\x01\xdd\x57"
> + "\x0c\x10\x04\xff\x50\x7e\x78\x73",
> + .klen = 32,
Can we keep these sorted by increasing length?
- Eric
next prev parent reply other threads:[~2026-12-02 2:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:08 [PATCH v3 0/2] crypto: adiantum - Use the ChaCha library Laveesh Bansal
2026-12-01 8:08 ` [PATCH v3 1/2] crypto: testmgr - Add Adiantum vectors with a partial last ChaCha block Laveesh Bansal
2026-12-02 2:21 ` Eric Biggers [this message]
2026-12-01 8:08 ` [PATCH v3 2/2] crypto: adiantum - Use the ChaCha library Laveesh Bansal
2026-12-02 2:30 ` Eric Biggers
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=20261202022124.GB2427638@google.com \
--to=ebiggers@kernel.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=laveeshb@laveeshbansal.com \
--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®