Re: [PATCH v3 1/2] crypto: testmgr - Add Adiantum vectors with a partial last ChaCha block
From: Eric Biggers
Date: Tue Dec 01 2026 - 21:22:41 EST
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