gnupg 2.5.22 -> 2.5.24 update breaks notmuch configure

Werner Koch wk at gnupg.org
Mon Sep 28 14:47:22 CEST 2026


Hi!

Indeed there is a severe bug in the import code.  I created ticket T8469
which reads:

--8<---------------cut here---------------start------------->8---
Import of ECDH secret keys broken in gnupg 2.5.24

This was reported by Thomas Klausner on gnupg-devel. The configure script failed when updating gnupg from 2.5.22 to 2.5.24. I can replicate this: the import of the sample key results in a broken private key file and thus a different keygrip so that the key can't be found when decryption (and it would not work anyway).

The broken key is:

Created: 20220907T100823
Key: (private-key (ecc (curve "1.3.6.1.4.1.3029.1.5.1")(flags
  djb-tweak)(q #03010807#)(d #5A1EFA9E63363344E65123E324E96230B109E0BDF
 0CA256E2032D3263BE76EB0#)))

And the correct key (here imported with gnupg 2.2 using the 2.5 gpg-agent):

Created: 20220907T100823
Key: (private-key (ecc (curve Curve25519)(flags djb-tweak)(q
  #40439DDC4C820F9AA8E3E42E1F3D25AEE08654CEA7E9123876D021DDC5FDB87C22#)
 (d #5A1EFA9E63363344E65123E324E96230B109E0BDF0CA256E2032D3263BE76EB0#)
 ))
--8<---------------cut here---------------end--------------->8---


Thanks for reporting.


Shalom-Salam,

   Werner


-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260928/d91c23fe/attachment.sig>


More information about the Gnupg-devel mailing list