Page MenuHome GnuPG
Feed Advanced Search

Nov 25 2021

gniibe added a comment to T5331: Possibly incompatible Ed25519 signature between other implementations and 2.3-bata.

To be conservative, given the situation most implementations already support zero-removal and zero-recovery, it's better to output zero-removed signature, that is, signature with well-formed MPI.

Nov 25 2021, 6:29 AM · gnupg (gpg23), Bug Report
gniibe added a comment to T5120: Incompatible Ed25519 secret key (no-encryption).

My proposal is applying SOS (MPI with leading zero octets) patches, for 2.2, because there may be existing keys with SOS already.

Nov 25 2021, 6:17 AM · gnupg (gpg22), Bug Report
gniibe reopened T5120: Incompatible Ed25519 secret key (no-encryption), a subtask of T5114: GnuPG fails to import back generated and exported EdDSA secret key., as Open.
Nov 25 2021, 6:14 AM · gnupg, Restricted Project, gpgagent, Bug Report
gniibe reopened T5120: Incompatible Ed25519 secret key (no-encryption) as "Open".

It's not yet solved.

Nov 25 2021, 6:14 AM · gnupg (gpg22), Bug Report
gniibe updated the task description for T5331: Possibly incompatible Ed25519 signature between other implementations and 2.3-bata.
Nov 25 2021, 5:52 AM · gnupg (gpg23), Bug Report
gniibe changed the status of T5699: libgpg-error 1.43 fails t-lock-single-thread test on x86_64 with musl and macOS from Open to Testing.

Reading the documentation of musl, it seems that there are no equivalent feature which detects if an application is single-threaded or not.

Nov 25 2021, 4:11 AM · gpgrt, Bug Report

Nov 24 2021

gniibe triaged T5699: libgpg-error 1.43 fails t-lock-single-thread test on x86_64 with musl and macOS as Normal priority.
Nov 24 2021, 3:20 AM · gpgrt, Bug Report
gniibe added a comment to T5699: libgpg-error 1.43 fails t-lock-single-thread test on x86_64 with musl and macOS.

In the libgpg-error implementation, it may skip synchronization when it can detect an application is single threaded. The t-lock-single-thread test checks if it really skips as intended.

Nov 24 2021, 3:20 AM · gpgrt, Bug Report
gniibe claimed T5699: libgpg-error 1.43 fails t-lock-single-thread test on x86_64 with musl and macOS.
Nov 24 2021, 2:55 AM · gpgrt, Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

Thank you.

Nov 24 2021, 2:52 AM · gnupg (gpg23), Bug Report

Nov 23 2021

Jakuje added a comment to T5393: gnupg coverity static analysis reports.

(forgot to upload the patch to the last comment)

Nov 23 2021, 3:59 PM · gnupg (gpg23), Bug Report
Jakuje added a comment to T5393: gnupg coverity static analysis reports.

I am fine with either way. The memcmp variant is probably cleaner to make sure all works as expected in all cases.

Nov 23 2021, 3:59 PM · gnupg (gpg23), Bug Report
werner triaged T5701: Mismatch between enums and config table as High priority.

Thanks for the well written bug report and the fix.

Nov 23 2021, 1:29 PM · gnupg (gpg23), Bug Report
werner closed T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as Resolved.
Nov 23 2021, 1:26 PM · Restricted Project, scd, ssh, Bug Report
adriaandegroot added a comment to T5701: Mismatch between enums and config table.

So that you don't need to chase the downstream bug report, the problem from a user's perspective looks like this:

Nov 23 2021, 12:21 PM · gnupg (gpg23), Bug Report
Jakuje added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

Thank you. Extending the semantics of GCRYCTL_CLOSE_RANDOM_DEVICE sounds good to me. I think the deinit functions were created initially especially not to change the semantics of existing code using GCRYCTL_CLOSE_RANDOM_DEVICE, but I agree that it will probably not be an issue.

Nov 23 2021, 9:59 AM · FIPS, libgcrypt, Bug Report
werner closed T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired as Resolved.
Nov 23 2021, 9:18 AM · gnupg (gpg22), Bug Report
werner closed T5120: Incompatible Ed25519 secret key (no-encryption), a subtask of T5114: GnuPG fails to import back generated and exported EdDSA secret key., as Resolved.
Nov 23 2021, 9:15 AM · gnupg, Restricted Project, gpgagent, Bug Report
werner closed T5120: Incompatible Ed25519 secret key (no-encryption) as Resolved.

I guess this is solved. Feel free to re-open and schedule for 2.2.34

Nov 23 2021, 9:15 AM · gnupg (gpg22), Bug Report
werner closed T5656: Error emitted: gpg: error reading symlink '/proc/curproc/file': No such file or directory as Resolved.
Nov 23 2021, 9:07 AM · gnupg (gpg23), MacOS, Bug Report
werner added a project to T5701: Mismatch between enums and config table: gnupg (gpg23).
Nov 23 2021, 9:04 AM · gnupg (gpg23), Bug Report

Nov 22 2021

ikloecker changed the status of T5697: Kleopatra: Crashes or hangs on circular certificate chains from Open to Testing.
Nov 22 2021, 10:51 AM · Restricted Project, kleopatra, Bug Report
ikloecker added a comment to T5697: Kleopatra: Crashes or hangs on circular certificate chains.

Second issue is also fixed.

Nov 22 2021, 10:50 AM · Restricted Project, kleopatra, Bug Report
adriaandegroot updated the task description for T5701: Mismatch between enums and config table.
Nov 22 2021, 10:27 AM · gnupg (gpg23), Bug Report
adriaandegroot added a comment to T5701: Mismatch between enums and config table.

Here's a patch against b091a250d1411f9962385d1338c13481da2e0f9e.

Nov 22 2021, 10:25 AM · gnupg (gpg23), Bug Report
adriaandegroot created T5701: Mismatch between enums and config table.
Nov 22 2021, 10:22 AM · gnupg (gpg23), Bug Report

Nov 19 2021

marv created T5699: libgpg-error 1.43 fails t-lock-single-thread test on x86_64 with musl and macOS.
Nov 19 2021, 2:06 PM · gpgrt, Bug Report
hydra3333 added a comment to T5695: libgcrypt cross-compilation error.

PS, knowing little about it, I tend to look at builds scripts here https://github.com/msys2/MINGW-packages on how to do things.
eg https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-libgcrypt

Nov 19 2021, 9:12 AM · Bug Report
hydra3333 added a comment to T5695: libgcrypt cross-compilation error.

Thank you, it successfully cross-compiles from latest git commit (not sure if it "runs", not tested it).

Nov 19 2021, 9:09 AM · Bug Report
gniibe added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

Part 1 was applied. Part 3, Part 4, and Part 7 are irrelevant now, because we now have rndgetentropy which doesn't use device.

Nov 19 2021, 8:50 AM · FIPS, libgcrypt, Bug Report
gniibe added a comment to T5695: libgcrypt cross-compilation error.

It was in the middle of merging jitterentropy. Please see T5692 (newer jitterentropy uses pthread by default, which was disabled now).

Nov 19 2021, 12:52 AM · Bug Report

Nov 18 2021

ikloecker added a comment to T5697: Kleopatra: Crashes or hangs on circular certificate chains.

First issue is fixed.

Nov 18 2021, 4:00 PM · Restricted Project, kleopatra, Bug Report
ikloecker renamed T5697: Kleopatra: Crashes or hangs on circular certificate chains from Kleopatra: Crash on circular certificate chains to Kleopatra: Crashes or hangs on circular certificate chains.
Nov 18 2021, 3:59 PM · Restricted Project, kleopatra, Bug Report
ikloecker claimed T5697: Kleopatra: Crashes or hangs on circular certificate chains.

Rating as High because this can be used for a DoS attack on individual users.

Nov 18 2021, 2:37 PM · Restricted Project, kleopatra, Bug Report
ikloecker created T5697: Kleopatra: Crashes or hangs on circular certificate chains.
Nov 18 2021, 2:35 PM · Restricted Project, kleopatra, Bug Report
jukivili added a comment to T5694: poly1305-s390x.S is compiled despite --disable-asm.

Following patch should prevent assembly files being built at all with --disable-asm:

Nov 18 2021, 8:51 AM · libgcrypt, Bug Report
jukivili added a comment to T5694: poly1305-s390x.S is compiled despite --disable-asm.

Thanks for your report.

Nov 18 2021, 8:27 AM · libgcrypt, Bug Report
jukivili claimed T5694: poly1305-s390x.S is compiled despite --disable-asm.
Nov 18 2021, 8:17 AM · libgcrypt, Bug Report

Nov 17 2021

werner closed T5695: libgcrypt cross-compilation error as Invalid.

Please see T5696.

Nov 17 2021, 6:30 PM · Bug Report
hydra3333 added a comment to T5695: libgcrypt cross-compilation error.

cross-compilation settings:

Nov 17 2021, 5:34 PM · Bug Report
hydra3333 added a comment to T5696: libgpg-error cross-compilation error.

The cross-compilation settings:

{ # 2019.12.13 # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=summary
	#'repo_type' : 'archive',
	'#url' : 'https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.43.tar.bz2',
	#
	'repo_type' : 'git',
	'recursive_git' : True,
	'url' : 'git://git.gnupg.org/libgpg-error.git', # https://git.gnupg.org/ # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=summary
	##'url' : 'https://dev.gnupg.org/source/libgpg-error.git', # https://git.gnupg.org/ # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=summary
	#
	'configure_options': '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-rpath --disable-doc --disable-tests --with-libiconv-prefix={target_prefix}', # --with-libintl=no --with-libpth=no',
	'custom_cflag' : ' ', # 2019.12.13 it fails to build with anything other than this, eg it crashes with -O3 and -fstack-protector-all -D_FORTIFY_SOURCE=2 
	'run_post_regexreplace' : (
		'autoreconf -fiv',
		'./autogen.sh --build-w64 ', 								 
	),
	'depends_on' : (
		'iconv', 
	),
}
Nov 17 2021, 5:30 PM
hydra3333 created T5696: libgpg-error cross-compilation error.
Nov 17 2021, 5:28 PM
hydra3333 created T5695: libgcrypt cross-compilation error.
Nov 17 2021, 5:26 PM · Bug Report

Nov 16 2021

pzich added a comment to T5693: GPG sign in corrupts larger terminal sizing.

Pinentry: pinentry-curses (pinentry) 1.2.0
OS: macOS 12.0
Terminal: xterm-256color (via zsh in the default Terminal.app)

Nov 16 2021, 7:58 PM · MacOS, pinentry, Bug Report
werner changed the status of T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu from Open to Testing.
Nov 16 2021, 5:24 PM · Restricted Project, scd, ssh, Bug Report
wrobelda added a comment to T5694: poly1305-s390x.S is compiled despite --disable-asm.

Additionally, poly1305-s390x.S is being compiled despite running/targeting a PC system:

Nov 16 2021, 1:31 PM · libgcrypt, Bug Report
werner triaged T5693: GPG sign in corrupts larger terminal sizing as Normal priority.

What is your Pinentry version, which OS is that, and which terminal type?

Nov 16 2021, 1:13 PM · MacOS, pinentry, Bug Report
werner triaged T5694: poly1305-s390x.S is compiled despite --disable-asm as Normal priority.
Nov 16 2021, 1:10 PM · libgcrypt, Bug Report
gniibe moved T5665: libgcrypt : Restrict message digest use for FIPS 140-3 from Next to Ready for release on the FIPS board.
Nov 16 2021, 11:22 AM · FIPS, Bug Report, libgcrypt
gniibe added a project to T5665: libgcrypt : Restrict message digest use for FIPS 140-3: Restricted Project.
Nov 16 2021, 11:20 AM · FIPS, Bug Report, libgcrypt
gniibe added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

In the documentation, I found:

Nov 16 2021, 10:58 AM · FIPS, libgcrypt, Bug Report

Nov 15 2021

wrobelda created T5694: poly1305-s390x.S is compiled despite --disable-asm.
Nov 15 2021, 10:16 PM · libgcrypt, Bug Report
pzich created T5693: GPG sign in corrupts larger terminal sizing.
Nov 15 2021, 8:47 PM · MacOS, pinentry, Bug Report
wrobelda added a comment to T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.

Please also refer to https://github.com/microsoft/vcpkg/discussions/20755 where we discuss on how to approach GnuPG libraries for a native Windows compilation.

Nov 15 2021, 11:30 AM · Bug Report
wrobelda added a comment to T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.

FWIW, the gnupg installer comes with dll, header and import files. You may use them.

Nov 15 2021, 11:23 AM · Bug Report
werner triaged T5668: gpgme: gpgme_op_query_swdb() does not report error from gpgconf as Normal priority.
Nov 15 2021, 7:46 AM · Restricted Project, gpgme, Bug Report
werner closed T5670: gpgconf --query-swdb incorrectly handles pre-release version numbers as Wontfix.
Nov 15 2021, 7:45 AM · gpg4win, Bug Report
werner closed T5667: gpg(v) prints the human-readable form of notations to the status-fd as Resolved.
Nov 15 2021, 7:43 AM · Bug Report
werner added a comment to T5686: GitHub mirror out of date.

No, our admin left us and took all scripts and docs with him. We need to set it up again. You better use this system anyway, patches etc on GitHib are not used.

Nov 15 2021, 7:42 AM · Feature Request, dev.gnupg.org
werner changed the status of T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows from Resolved to Wontfix.
Nov 15 2021, 7:40 AM · Bug Report
werner closed T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows as Resolved.

GnuPG requires a Unix system to build. We do not support building natively on Windows. Sorry.

Nov 15 2021, 7:40 AM · Bug Report
gniibe added a project to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu: Restricted Project.
Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report
gniibe added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

Adding the check on host side, I pushed the change: rGa575b0aba542: scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.

Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

Or, we can use memcmp to avoid arguing semantics of strncmp, and make it a bit cleaner to avoid calling strlen multple times by put_membuf_str.

diff --git a/g10/export.c b/g10/export.c
index 98c4623cf..c7cfcfaa4 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -2133,14 +2133,15 @@ key_to_sshblob (membuf_t *mb, const char *identifier, ...)
   size_t buflen;
   gcry_mpi_t a;
Nov 15 2021, 2:08 AM · gnupg (gpg23), Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

We know that problematic strncmp implementation: T5443
So, I don't blame Coverity. But I think that it's better to fix strncmp implementation.

Nov 15 2021, 1:13 AM · gnupg (gpg23), Bug Report
wrobelda added a comment to T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.

I tried following the README instructions, but getting:

Nov 15 2021, 12:17 AM · Bug Report
wrobelda added a comment to T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.

I just read https://github.com/gpg/libgpg-error/blob/master/README#L119 and realize this is by design...

Nov 15 2021, 12:12 AM · Bug Report
wrobelda updated the task description for T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 15 2021, 12:00 AM · Bug Report
wrobelda updated the task description for T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 15 2021, 12:00 AM · Bug Report
wrobelda updated the task description for T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 15 2021, 12:00 AM · Bug Report

Nov 14 2021

wrobelda updated the task description for T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 14 2021, 11:59 PM · Bug Report
wrobelda updated the task description for T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 14 2021, 11:59 PM · Bug Report
wrobelda created T5687: "/mkheader.exe: cannot execute binary file: Exec format error" when cross compiling on Windows.
Nov 14 2021, 11:58 PM · Bug Report
wrobelda created T5686: GitHub mirror out of date.
Nov 14 2021, 9:57 PM · Feature Request, dev.gnupg.org

Nov 13 2021

werner closed T5301: Decrypting a message that has multiple SKESK packets sometimes fails as Wontfix.
Nov 13 2021, 2:43 PM · gnupg (gpg22), Bug Report
werner edited projects for T5331: Possibly incompatible Ed25519 signature between other implementations and 2.3-bata, added: gnupg (gpg23); removed gnupg (gpg22).
Nov 13 2021, 2:38 PM · gnupg (gpg23), Bug Report

Nov 12 2021

werner triaged T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as High priority.
Nov 12 2021, 12:53 PM · Restricted Project, scd, ssh, Bug Report
werner added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

Okay, I revisited the code:

Nov 12 2021, 12:52 PM · Restricted Project, scd, ssh, Bug Report
werner added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

The internal hashing of ed25519 is not used by OpenPGP but instead we pass the hash of the message to the ed25519 function and thus to the card. Pushing a message through a card is a no-go - way too slow for any normal sized message.

Nov 12 2021, 12:32 PM · Restricted Project, scd, ssh, Bug Report
klali added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

Since hashing happens on-card for ed25519 I'm not sure what limits gpg wants to impose, currently the data is passed straight through and scdaemon will happily try to send more than 255 bytes of data as a short apdu here. My patch is probably not correct, I assume it needs to care about cardcap.ext_lc_le and chunking as well.

Nov 12 2021, 9:21 AM · Restricted Project, scd, ssh, Bug Report
werner added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

That does not seem to be right. You don't need 255 bytes for an ECC key. It would be best to get scdaemon logs simialr to the gpg-agent logs. Set "debug ipc,cardio" into scdaemon.conf.

Nov 12 2021, 8:59 AM · Restricted Project, scd, ssh, Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

Under C11, it seems OK (strncmp).
https://stackoverflow.com/questions/38878195/does-this-usage-of-strncmp-contain-an-out-of-bounds-read

Nov 12 2021, 7:45 AM · gnupg (gpg23), Bug Report
gniibe added a comment to T5393: gnupg coverity static analysis reports.

I applied most of gnupg-coverity.patch.

  • Part 1 is not applied; It should be handled later.
  • Part 2: applied
  • Part 3: applied
  • Part 4: applied, but spell fixes not require ChangeLog entry
  • Part 5
  • Part 6: applied
  • Part 7: applied, but empty initializer is GNU extension (or the way of C++), so first 0
  • Part 8: applied
  • Part 9: applied, but one more fix
Nov 12 2021, 7:28 AM · gnupg (gpg23), Bug Report
gniibe claimed T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.
Nov 12 2021, 5:42 AM · Restricted Project, scd, ssh, Bug Report

Nov 11 2021

Jakuje added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

I just wanted to add one more note that i just found out that the tests --disable-hwf or gcry_control GCRYCTL_DISABLE_HWF have no effect in case the global_init() is called from constructor.

Nov 11 2021, 12:08 PM · FIPS, libgcrypt, Bug Report
klali created T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.
Nov 11 2021, 10:22 AM · Restricted Project, scd, ssh, Bug Report

Nov 10 2021

jcross added a comment to T5555: Cannot add existing ECDSA key as a signing subkey.

Friendly ping @werner

Nov 10 2021, 1:32 AM · gnupg24, Bug Report

Nov 9 2021

gniibe added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

We will have rnd-getentropy.c

Nov 9 2021, 11:16 AM · FIPS, libgcrypt, Bug Report
gniibe claimed T5636: Run integrity checks + selftests from library constructor in FIPS.
Nov 9 2021, 11:08 AM · FIPS, libgcrypt, Bug Report
gniibe moved T5636: Run integrity checks + selftests from library constructor in FIPS from Backlog to Next on the FIPS board.
Nov 9 2021, 11:08 AM · FIPS, libgcrypt, Bug Report
gniibe added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

Let me clean up rndlinux.c for current use case, at first.

Nov 9 2021, 7:07 AM · FIPS, libgcrypt, Bug Report

Nov 5 2021

gniibe added a comment to T5636: Run integrity checks + selftests from library constructor in FIPS.

Firstly, applied uncontroversial part in rC976673425784: doc: Reference the new FIPS 140-3

Nov 5 2021, 7:23 AM · FIPS, libgcrypt, Bug Report

Nov 4 2021

werner closed T5679: Incorrectly aligned text for print-md and print-mds (echoed, piped text only) as Resolved.
Nov 4 2021, 5:27 PM · Bug Report
werner added a comment to T5679: Incorrectly aligned text for print-md and print-mds (echoed, piped text only).

Fixed and tested on Linux. Thanks.

Nov 4 2021, 5:27 PM · Bug Report
Heino created T5679: Incorrectly aligned text for print-md and print-mds (echoed, piped text only).
Nov 4 2021, 4:11 PM · Bug Report
ikloecker added a comment to T5675: Kleopatra 3.1.16 / Keyservers related functions are not working.

I suppose you have rebooted the PC after installing GnuPG 2.3.32. Just to make sure. And double check that there is only one dirmngr.exe with version 2.2.32 installed on your system.

Nov 4 2021, 2:45 PM · Keyserver, kleopatra, Bug Report
ikloecker closed T5462: gpgconf: Make gpg/keyserver option available again, a subtask of T5461: Kleopatra: Does not change OpenPGP keyserver configured in gpg.conf, as Resolved.
Nov 4 2021, 12:07 PM · Restricted Project, kleopatra, Bug Report
HannesESS changed the status of T5675: Kleopatra 3.1.16 / Keyservers related functions are not working from Duplicate to Wontfix.

I did a complete reinstall after cleaning out the complete system incl. registry.
No change in behavior of Gpg4win.

Nov 4 2021, 11:49 AM · Keyserver, kleopatra, Bug Report

Nov 3 2021

HannesESS added a comment to T5675: Kleopatra 3.1.16 / Keyservers related functions are not working.

THX for the quick reply Ingo...

Nov 3 2021, 5:48 PM · Keyserver, kleopatra, Bug Report
werner closed T5495: libgpg-error: build failure without threads as Resolved.
Nov 3 2021, 3:17 PM · Bug Report