[PATCH 15/17] cipher:dilithium: Add ML-DSA into libgcrypt pubkey interface.

NIIBE Yutaka gniibe at fsij.org
Sat Jun 28 05:44:52 CEST 2025


* configure.ac (available_pubkey_ciphers): Add dilithium.
(USE_DILITHIUM): New.
* cipher/Makefile.am (EXTRA_libcipher_la_SOURCES): Add
pubkey-dilithium.c.
* cipher/pubkey-dilithium.c: New.
* cipher/pubkey.c (pubkey_list): Add _gcry_pubkey_spec_mldsa.
* src/cipher.h (_gcry_pubkey_spec_mldsa): New.
* src/gcrypt-int.h (enum gcry_mldsa_algos): New.
* src/gcrypt.h.in (GCRY_PK_MLDSA): New.

--

GnuPG-bug-id: 7640
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 cipher/Makefile.am        |   2 +-
 cipher/pubkey-dilithium.c | 383 ++++++++++++++++++++++++++++++++++++++
 cipher/pubkey.c           |   3 +
 configure.ac              |  10 +-
 src/cipher.h              |   1 +
 src/gcrypt-int.h          |   7 +
 src/gcrypt.h.in           |   1 +
 7 files changed, 405 insertions(+), 2 deletions(-)
 create mode 100644 cipher/pubkey-dilithium.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-cipher-dilithium-Add-ML-DSA-into-libgcrypt-pubkey-in.patch
Type: text/x-patch
Size: 13414 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20250628/dd6274aa/attachment.bin>


More information about the Gcrypt-devel mailing list