[PATCH 16/17] crypto: jitterentropy - use default sha3 implementation
Eric Biggers
ebiggers at kernel.org
Mon Oct 20 14:20:57 PDT 2025
On Mon, Oct 20, 2025 at 11:35:30AM +0100, David Howells wrote:
> Why don't you take my approach and just call lib/crypto/sha3 directly rather
> than using a crypto/ object as an intermediary if that crypto/ object is just
> going to wrap lib/crypto?
We'll do that, and thanks for writing the patch already! But that's
something to do in a later patch after adding the library API. Your
patch description kind of raised a red flag:
Make the jitterentropy RNG use lib/crypto/sha3 rather than
crypto/sha3.
For some reason it goes absolutely wild if crypto/sha3 is
reimplemented to use lib/crypto/sha3, but it's fine if it uses lib
directly.
That implies that your changes broke crypto_shash, so you *had* to
convert to the library right away as a workaround for that.
That shouldn't be necessary. We should generally keep crypto_shash
working for now. In which case, all jitterentropy should need for now
is a simple substitution s/sha3-256-generic/sha3-256/.
We'll convert jitterentropy to use the library API too. It's better,
after all. But it should be done later and because the library API is
better -- not as some sort of workaround.
- Eric
More information about the linux-arm-kernel
mailing list