Page MenuHome GnuPG

libgcryptProject
ActivePublic

Recent Activity

Fri, Apr 17

gniibe triaged T8230: libgcrypt: Use memset_explicit (of C23) to wipe memory as Wishlist priority.

Here is the change:

diff --git a/configure.ac b/configure.ac
index 30be86b5..ac2696e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3073,7 +3073,8 @@ AC_CHECK_FUNCS(strtoul memmove stricmp atexit raise)
 AC_CHECK_FUNCS(strerror rand mmap getpagesize sysconf waitpid wait4)
 AC_CHECK_FUNCS(gettimeofday getrusage gethrtime clock_gettime syslog)
 AC_CHECK_FUNCS(syscall fcntl ftruncate flockfile getauxval elf_aux_info)
-AC_CHECK_FUNCS(explicit_bzero explicit_memset getentropy sysctlbyname)
+AC_CHECK_FUNCS(memset_explicit explicit_bzero explicit_memset)
+AC_CHECK_FUNCS(getentropy sysctlbyname)
Fri, Apr 17, 8:40 AM · libgcrypt, Bug Report
gniibe created T8230: libgcrypt: Use memset_explicit (of C23) to wipe memory.
Fri, Apr 17, 8:38 AM · libgcrypt, Bug Report

Thu, Apr 16

gniibe updated the task description for T8227: libgcrypt: Armv9.4-A Guarded Control Stack (GCS) support.
Thu, Apr 16, 9:18 AM · libgcrypt, Bug Report
gniibe added a comment to T8227: libgcrypt: Armv9.4-A Guarded Control Stack (GCS) support.

I found the description in ARM Architecture Reference Manual:
https://developer.arm.com/documentation/ddi0487/mb/-Part-D-The-AArch64-System-Level-Architecture/-Chapter-D11-The-Guarded-Control-Stack/-D11-1-Introduction/-D11-1-3-Overview?lang=en

Thu, Apr 16, 9:16 AM · libgcrypt, Bug Report
gniibe triaged T8227: libgcrypt: Armv9.4-A Guarded Control Stack (GCS) support as Wishlist priority.
Thu, Apr 16, 9:13 AM · libgcrypt, Bug Report
gniibe created T8227: libgcrypt: Armv9.4-A Guarded Control Stack (GCS) support.
Thu, Apr 16, 9:12 AM · libgcrypt, Bug Report

Wed, Apr 15

werner closed T8208: Missing bounds check in libgcrypt's Dilithium context handling as Resolved.
Wed, Apr 15, 11:18 AM · Security, PQC, Bug Report, libgcrypt
werner closed T8114: Release Libgcrypt 1.12.2 as Resolved.
Wed, Apr 15, 11:16 AM · libgcrypt, Release Info
werner closed T7887: Release Libgcrypt 1.8.12 as Resolved.
Wed, Apr 15, 11:03 AM · libgcrypt, Release Info
werner closed T8224: Release Libgcrypt 1.8.13 as Resolved.
Wed, Apr 15, 11:03 AM · libgcrypt, Release Info
werner triaged T8225: Release Libgcrypt 1.8.14 as Low priority.
Wed, Apr 15, 11:02 AM · Release Info, libgcrypt
werner updated the task description for T7887: Release Libgcrypt 1.8.12.
Wed, Apr 15, 10:57 AM · libgcrypt, Release Info
werner triaged T8224: Release Libgcrypt 1.8.13 as Normal priority.
Wed, Apr 15, 10:51 AM · libgcrypt, Release Info
werner triaged T8223: Release Libgcrypt 1.12.3 as Normal priority.
Wed, Apr 15, 10:44 AM · libgcrypt, Release Info
gniibe changed the status of T8208: Missing bounds check in libgcrypt's Dilithium context handling from Open to Testing.
Wed, Apr 15, 7:32 AM · Security, PQC, Bug Report, libgcrypt

Tue, Apr 14

gniibe updated the task description for T8220: libgcrypt: Brainpool curve specific optimization.
Tue, Apr 14, 8:40 AM · libgcrypt, Bug Report
gniibe triaged T8220: libgcrypt: Brainpool curve specific optimization as Wishlist priority.
Tue, Apr 14, 8:40 AM · libgcrypt, Bug Report
gniibe created T8220: libgcrypt: Brainpool curve specific optimization.
Tue, Apr 14, 8:40 AM · libgcrypt, Bug Report

Fri, Apr 10

gniibe added a comment to T8208: Missing bounds check in libgcrypt's Dilithium context handling.

The minimum fix avoids changes needed, thus, a bit confusing as a whole.
Here are better changes:


Fri, Apr 10, 11:07 AM · Security, PQC, Bug Report, libgcrypt

Thu, Apr 9

gniibe claimed T8208: Missing bounds check in libgcrypt's Dilithium context handling.

Minimum fix is:

Thu, Apr 9, 8:48 AM · Security, PQC, Bug Report, libgcrypt

Mon, Apr 6

werner added a project to T8208: Missing bounds check in libgcrypt's Dilithium context handling: Security.
Mon, Apr 6, 5:13 PM · Security, PQC, Bug Report, libgcrypt
werner triaged T8208: Missing bounds check in libgcrypt's Dilithium context handling as High priority.
Mon, Apr 6, 5:09 PM · Security, PQC, Bug Report, libgcrypt

Wed, Apr 1

gniibe triaged T8204: libgcrypt: Add optimized implementation of Kyber/Dilithium using CPU specific vector extention as Wishlist priority.
Wed, Apr 1, 7:30 AM · PQC, libgcrypt, Bug Report
gniibe created T8204: libgcrypt: Add optimized implementation of Kyber/Dilithium using CPU specific vector extention.
Wed, Apr 1, 7:30 AM · PQC, libgcrypt, Bug Report

Wed, Mar 25

gniibe changed the status of T8171: interoperability of PGP RSA keys from Open to Testing.

Pushed: rG8b6de59ad880: agent: Raise GPG_ERR_BAD_SECKEY when p >= q for RSA key.

Wed, Mar 25, 1:39 AM · libgcrypt, gnupg, Bug Report

Tue, Mar 24

gniibe added a comment to T8171: interoperability of PGP RSA keys.

While I pushed the change of libgcrypt, I'd like to apply following change to GnuPG.
This is more kind than GPG_ERR_BAD_PASSPHRASE by gcry_pk_testkey failure.

Tue, Mar 24, 3:33 AM · libgcrypt, gnupg, Bug Report

Mon, Mar 23

gniibe added a comment to T8171: interoperability of PGP RSA keys.

I retract my patch in T8171#215603

Mon, Mar 23, 10:36 AM · libgcrypt, gnupg, Bug Report
gniibe updated subscribers of T8171: interoperability of PGP RSA keys.

@m.eik gave us this link: https://github.com/ProtonMail/go-crypto/issues/184

Mon, Mar 23, 10:21 AM · libgcrypt, gnupg, Bug Report

Mar 19 2026

werner triaged T8171: interoperability of PGP RSA keys as Low priority.

Setting to low because this has never been a problem in the last 30 or 35 years. A check to help pinpointing bad keys is however a good idea.

Mar 19 2026, 4:58 PM · libgcrypt, gnupg, Bug Report
gniibe closed T7894: libgcrypt, scute, gpgrt/argparse, gnupg/dirmngr: Hard-coded /etc as Resolved.
Mar 19 2026, 1:58 AM · libgcrypt, scute, gpgrt, Bug Report

Mar 18 2026

gniibe added a comment to T8171: interoperability of PGP RSA keys.

I sent a patch to gcrypt-devel mailing list for the preparation of the change of RSA secret key checking.
If enabled, wrong RSA secret key (wrong means: under the Libre/OpenPGP specification) is rejected at import when gpg-agent calls gcry_pk_test_key.

Mar 18 2026, 7:00 AM · libgcrypt, gnupg, Bug Report

Mar 17 2026

werner added a comment to T8171: interoperability of PGP RSA keys.

BTW, LibrePGP also demands p < q in "Algorithm-Specific Part for RSA Keys".

Mar 17 2026, 12:27 PM · libgcrypt, gnupg, Bug Report
gniibe added a comment to T8171: interoperability of PGP RSA keys.

For OpenSSH, ssh-agent spec. defines p, q, and qInv.
FIPS has: FIPS 186-5 and SP 800-56Br2.

Mar 17 2026, 8:53 AM · libgcrypt, gnupg, Bug Report
gniibe added a comment to T8171: interoperability of PGP RSA keys.

existing standards

Mar 17 2026, 1:22 AM · libgcrypt, gnupg, Bug Report

Mar 16 2026

gniibe added a comment to T8171: interoperability of PGP RSA keys.

CRT is used with GnuPG. In libgcrypt, pk_sign and pk_decrypt don't require P, Q, and U in a key (it's optional), but pk_test_key does.

Mar 16 2026, 5:42 AM · libgcrypt, gnupg, Bug Report

Mar 13 2026

werner added a comment to T8171: interoperability of PGP RSA keys.

Du we have any information on whether the CRT is used and whether u et al. is also wrong? For example due to an OpenSSL generated key?

Mar 13 2026, 8:16 AM · libgcrypt, gnupg, Bug Report
gniibe created T8171: interoperability of PGP RSA keys.
Mar 13 2026, 7:46 AM · libgcrypt, gnupg, Bug Report

Mar 2 2026

gniibe added a project to T7519: libgcrypt: (EC)DSA signature generation should be constant-time: Security.

The reporter informed us that the possible DoS has CVE number assigned:
CVE-2025-69913

Mar 2 2026, 2:34 AM · Security, libgcrypt, Bug Report

Feb 23 2026

werner closed T7624: libksba: __non_string for GCC 15 or later, a subtask of T7617: libgcrypt: Add __nonstring__ attribute for data for GCC 15 or later, as Resolved.
Feb 23 2026, 2:51 PM · libgcrypt, Bug Report

Feb 21 2026

gniibe closed T8080: libgcrypt 1.12.0 regression: gcry_mpi_ec_curve_point as Resolved.

Fixed in 1.12.1.

Feb 21 2026, 1:19 AM · libgcrypt, Bug Report

Feb 20 2026

werner closed T7643: Release Libgcrypt 1.12.0 as Resolved.
Feb 20 2026, 2:19 PM · Release Info, libgcrypt
werner closed T8067: Release Libgcrypt 1.12.1 as Resolved.
Feb 20 2026, 2:19 PM · libgcrypt, Release Info
werner triaged T8114: Release Libgcrypt 1.12.2 as Low priority.
Feb 20 2026, 2:12 PM · libgcrypt, Release Info
werner changed the status of T8094: libgcrypt: EC least leak failure from Open to Testing.
Feb 20 2026, 1:55 PM · libgcrypt, Bug Report

Feb 19 2026

gniibe closed T7775: libgcrypt-1.11.2/mpi/mpi-add.c does not compile on PPC Mac OS X 10.5.8, Leopard, because of redefinition of typedefs as Resolved.

Fixed in 1.12.0.

Feb 19 2026, 5:37 AM · ppc, MacOS, libgcrypt

Feb 15 2026

werner added a comment to T8094: libgcrypt: EC least leak failure.

FWIW: Okay, gmime is still a wrapper around gpgme. After decryption it has the ability to get the used session key from the gpgme result structure. Thus, I have been on the wrong trail. The actual problem is not gpgme but more GnuPG's use of Libgcrypt or an actual regression in Libgcrypt. Well, Friday 13th.

Feb 15 2026, 4:37 PM · libgcrypt, Bug Report

Feb 14 2026

thesamesam added a comment to T8094: libgcrypt: EC least leak failure.

Any hints where to find the actual crypto code which uses libgcrypt?

Feb 14 2026, 5:59 AM · libgcrypt, Bug Report

Feb 13 2026

jrm added a comment to T8094: libgcrypt: EC least leak failure.

Maintainer of the FreeBSD notmuch port/package here. The steps below consistently trigger the problem on FreeBSD 16.0 (unreleased main branch), but there are no problems on FreeBSD 15.0. All my testing was on amd64.

Feb 13 2026, 6:26 PM · libgcrypt, Bug Report
werner added a comment to T8094: libgcrypt: EC least leak failure.

Any hints where to find the actual crypto code which uses libgcrypt?

Feb 13 2026, 10:16 AM · libgcrypt, Bug Report
gniibe raised the priority of T8094: libgcrypt: EC least leak failure from Low to High.
Feb 13 2026, 9:32 AM · libgcrypt, Bug Report