[PATCH 0/2] gpgme: Recognize additional OpenPGP algorithm families
Stavros Kousidis
stavros.kousidis at th-koeln.de
Wed Oct 21 14:44:46 CEST 2026
Hello Werner, all,
Following our September discussion about representing RFC 9980
algorithms in GPGME, I have revised the proposal to follow GPGME's
existing algorithm-family abstraction.
The patches improve algorithm recognition and representation in the
existing OpenPGP mapper. They do not implement cryptography or change
engine discovery, invocation, or cryptographic operations.
Patch 1 recognizes RFC 9980 SLH-DSA identifiers 32--34 as a generic
family. The descriptor is slhdsa, without claiming a concrete parameter
set.
Patch 2 is optional. It recognizes the pinned
draft-ietf-openpgp-nist-bp-comp-05 composite signature IDs 41--44 as the
existing MLDSA family. It applies on top of patch 1 but is not required
by it. Existing mappings, including 30--31 and 35--40, stay unchanged.
The proposed GPGME_PK_SLHDSA enum value 334 and the @since{2.3.0} annotation
are suggestions for maintainer review.
I built and tested GPGME with the RFC 9980 patch alone and with
both patches applied. All relevant tests passed.
I also checked that the changes affect only the intended algorithm
identifiers (32--34 and 41--44). Existing algorithm mappings remain
unchanged, including those used by CMS.
The Linux API/ABI checks found no compatibility changes.
I have not repeated cryptographic operations or mail-client tests
with these particular patches.
My GPGME DCO declaration is archived at:
https://lists.gnupg.org/pipermail/gnupg-devel/2026-September/036452.html
Beste regards,
Stavros
Stavros Kousidis (2):
gpgme: Recognize RFC 9980 SLH-DSA algorithms
gpgme: Recognize draft-05 composite signatures
NEWS | 1 +
doc/gpgme.texi | 9 +++
src/conversion.c | 11 +++
src/gpgme.c | 4 ++
src/gpgme.h.in | 3 +-
tests/Makefile.am | 4 +-
tests/t-pubkey-algo.c | 152 ++++++++++++++++++++++++++++++++++++++++++
7 files changed, 182 insertions(+), 2 deletions(-)
create mode 100644 tests/t-pubkey-algo.c
base-commit: a85fa492369c5f65918cb37fc6d24d473237f838
More information about the Gnupg-devel
mailing list