All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: dhowells@redhat.com, Stephan Mueller <smueller@chronox.de>,
	linux-crypto@vger.kernel.org
Subject: Adding SHAKE hash algorithms to SHA-3
Date: Mon, 15 Sep 2025 09:30:00 +0100	[thread overview]
Message-ID: <2552917.1757925000@warthog.procyon.org.uk> (raw)

Hi Herbert,

I'm looking at adding ML-DSA from leancrypto to the kernel to support PQC
module signing.  This requires some SHAKE algorithms, however.  Leancrypto
comes with its own SHA-3 implementation that also implements these, but I'd
rather use the already existing kernel one.

The problem is that struct shash_alg expects the digestsize to be fixed - but
with SHAKE this isn't the case.  If it's okay with you, I'll replace the
digestsize field with a set_digestsize and a get_digestsize function as
leancrypto does.

David


             reply	other threads:[~2025-09-15  8:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-15  8:30 David Howells [this message]
2025-09-15 12:00 ` Adding SHAKE hash algorithms to SHA-3 Herbert Xu
2025-09-15 20:48   ` David Howells
2025-09-15 22:10     ` Eric Biggers
2025-09-19  6:41   ` David Howells
2025-09-19 13:57     ` Simo Sorce
2025-09-19 15:49       ` Stephan Müller

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=2552917.1757925000@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=smueller@chronox.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.