[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3878472.1758296076@warthog.procyon.org.uk>
Date: Fri, 19 Sep 2025 16:34:36 +0100
From: David Howells <dhowells@...hat.com>
To: Simo Sorce <simo@...hat.com>
Cc: dhowells@...hat.com,
Stephan Müller <smueller@...onox.de>,
Eric Biggers <ebiggers@...nel.org>,
"Jason A. Donenfeld" <Jason@...c4.com>,
Ard Biesheuvel <ardb@...nel.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
linux-crypto@...r.kernel.org, keyrings@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lib/crypto: Add SHA3-224, SHA3-256, SHA3-384, SHA-512, SHAKE128, SHAKE256
Simo Sorce <simo@...hat.com> wrote:
> I strongly suggest creating a test vector where multiple absorb and
> squeeze operations are done in intermixed order, and then use that test
> vector in your Kunit tests to ensure changes to the code do not break
> this fundamental property of the keccak sponge algorithm.
I'm putting such a beast in the module init function at least.
Annoyingly, Eric's hash-test-template.h makes some unwarranted assumptions
about the hashes it is testing - such as the final function zeroing out the
hash struct.
David
Powered by blists - more mailing lists