Page MenuHome GnuPG
Feed Advanced Search

May 12 2021

werner edited projects for T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations, added: gnupg (gpg23), MacOS; removed gpgagent.

The pincache is actually not what you think it is. It is only used to allow switching between different application on a Yubikey which reqieres a new VERIFY command after switching back to the first application the card. What you feel as caching is the state of the card, which usually keeps its verification state until the card is powered down.

May 12 2021, 5:52 PM · gnupg24, yubikey, Bug Report
werner committed rM88db69e1a964: core: Make sure to stay ABI compatible. (authored by werner).
core: Make sure to stay ABI compatible.
May 12 2021, 9:17 AM
werner committed rMaa98081356b5: core: Allow for older compilers. (authored by werner).
core: Allow for older compilers.
May 12 2021, 9:17 AM
werner closed T5434: gpg-agent should not use MD5 fingerprint for ssh keys as Resolved.
May 12 2021, 9:05 AM · gnupg, Bug Report
werner committed rG310b064f5271: agent: Use SHA-256 for SSH fingerprint by default (authored by werner).
agent: Use SHA-256 for SSH fingerprint by default
May 12 2021, 8:59 AM
werner added a comment to T5434: gpg-agent should not use MD5 fingerprint for ssh keys.

Frankly, I am pretty sure that the new base64 encoding of the fingerprint leads to less diligent comparison of the fingerprint by the user. I don't understand why they did not used a truncated hex output or zBase32 .

May 12 2021, 8:51 AM · gnupg, Bug Report

May 11 2021

werner triaged T5432: GPA - Crypto Backend Configurator ignores screen zoom factor and partially falls off screen as Low priority.

Thanks for using GPA. Unfortunately, I have to tell you that GPA development has been stopped and I can't say whether we will fix that bug any time soon. Please consider to switch to Kleopatra which is the standard key manager included in gpg4win.

May 11 2021, 1:49 PM · gpa, Bug Report
werner committed rG965bb0693c0d: A few minor code cleanups and typo fixes. (authored by werner).
A few minor code cleanups and typo fixes.
May 11 2021, 9:25 AM
werner added a comment to T5430: "free(): invalid pointer" from --clearsign.

FWIW, we can and should run our test suite under valgrind from time to time

May 11 2021, 9:00 AM · gnupg (gpg23)
werner triaged T5431: Use AC_PROG_CC_C99 as Normal priority.
May 11 2021, 8:23 AM · gnupg24, toolchain, gnupg (gpg23)

May 10 2021

werner assigned T5428: PC/SC detecting removal of card to gniibe.

(I disabled the account of this boor)

May 10 2021, 6:43 PM · Info Needed, Windows, scd, Bug Report
werner reopened T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7 as "Open".

(I disabled this boor and restored the state)

May 10 2021, 6:41 PM · MacOS, yubikey, Bug Report
werner triaged T5428: PC/SC detecting removal of card as High priority.
May 10 2021, 8:51 AM · Info Needed, Windows, scd, Bug Report
werner added a comment to T5428: PC/SC detecting removal of card.

I don't think that it is --pcsc-shared related; Andre reported that he noticed such a behaviour before we introduced this.

May 10 2021, 8:49 AM · Info Needed, Windows, scd, Bug Report
werner added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

We should add a comment at the caller side, that this takes a lock in apdu.c.

May 10 2021, 8:45 AM · gnupg (gpg23), scd

May 7 2021

werner committed rG89e20c38c21f: po: auto updates (authored by werner).
po: auto updates
May 7 2021, 9:55 AM
werner committed rG987b81686022: scd,pcsc: Use a single context. (authored by gniibe).
scd,pcsc: Use a single context.
May 7 2021, 9:55 AM
werner committed rG26de9c400ee6: build: Silence a cimpiler warning also in non-maintainer mode. (authored by werner).
build: Silence a cimpiler warning also in non-maintainer mode.
May 7 2021, 9:55 AM
werner requested changes to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Keeping the lock over the call to the function does not look very robust to me. This is why I removed it. And since then PC/SC worked on Windows for me. Modulo this:
All these changes don't tackle the real problem that windows gets struck in a removed-card state.

May 7 2021, 8:36 AM · gnupg (gpg23), scd

May 6 2021

werner added a comment to D530: gpgme: Add support for trust signatures to key list result.

This is better name. My point was that if we ever use that to create such a field the developer should not assume that arbitrary REs can be used here. We need to have some practical value here and I would prefer to see only the domain name. However, OpenPGP allows for arbitrary REs and thus we may see them here. This is problematic but we can't do much about it.

May 6 2021, 10:01 AM · gpgme
werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

That would required that we also add an option --enable-ccid-driver - better tell the macOS folks to put diable-ccid-driver into /etc/gnupg/scdaemon.conf

May 6 2021, 9:06 AM · MacOS, yubikey, Bug Report
werner added a project to T5423: libgcrypt 1.8 ECDH: Debian.

FWIW, I think that it is a Bad Thing to use unreleased stuff from 1.8 for Debian packages. Only released versions sshould be used or patches we explicitly made to fix a bug. At the very least Andreas should have asked upstream whether this commit should be used for Sid.

May 6 2021, 9:00 AM · Debian, libgcrypt

May 5 2021

werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.

Thanks for testing. I hope to get 2.3.2 out in two weeks.

May 5 2021, 8:13 AM · yubikey, scd, gnupg (gpg23), Bug Report

May 4 2021

werner added inline comments to D530: gpgme: Add support for trust signatures to key list result.
May 4 2021, 12:29 PM · gpgme
werner committed rGb410c95fe953: build: Silence two compiler warnings. (authored by werner).
build: Silence two compiler warnings.
May 4 2021, 11:54 AM
werner committed rGb203325ce112: gpg: Allow ECDH with a smartcard returning just the x-coordinate. (authored by werner).
gpg: Allow ECDH with a smartcard returning just the x-coordinate.
May 4 2021, 11:54 AM
werner committed rG9d83bfb63968: scd: Fix possible PC/SC removed card problem (authored by werner).
scd: Fix possible PC/SC removed card problem
May 4 2021, 11:54 AM
werner committed rG22fe23f46d31: gpg: Fix mailbox based search via AKL keyserver method. (authored by werner).
gpg: Fix mailbox based search via AKL keyserver method.
May 4 2021, 11:54 AM
werner committed rGa475bb725be7: scd: Add string for another PC/SC error code. (authored by werner).
scd: Add string for another PC/SC error code.
May 4 2021, 11:54 AM
werner committed rG569fa67277a4: build: Allow running sign-release target from the dist dir. (authored by werner).
build: Allow running sign-release target from the dist dir.
May 4 2021, 11:54 AM
werner committed rG6c4216094ef4: scd: Fix unblock PIN by a Reset Code with KDF. (authored by kirelagin).
scd: Fix unblock PIN by a Reset Code with KDF.
May 4 2021, 11:54 AM
werner committed rGe7251be84c79: gpg: Auto import keys specified with --trusted-keys. (authored by werner).
gpg: Auto import keys specified with --trusted-keys.
May 4 2021, 11:54 AM
werner committed rGe53f6037283e: gpg: Allow decryption w/o public key but with correct card inserted. (authored by werner).
gpg: Allow decryption w/o public key but with correct card inserted.
May 4 2021, 11:54 AM
werner committed rG79e8ea100df9: speedo: Automatically select Authenticode signing cert. (authored by werner).
speedo: Automatically select Authenticode signing cert.
May 4 2021, 11:54 AM
werner committed rGaa612d752ebb: agent: Silence error messages for READKEY --card (authored by werner).
agent: Silence error messages for READKEY --card
May 4 2021, 11:54 AM

May 3 2021

werner committed rGc2ba6bea4ce8: common: Fix gnupg_wait_processes, by skipping invalid PID. (authored by gniibe).
common: Fix gnupg_wait_processes, by skipping invalid PID.
May 3 2021, 9:01 PM
werner committed rG2af217ecd7e4: gpg: Allow fingerprint based lookup with --locate-external-key. (authored by werner).
gpg: Allow fingerprint based lookup with --locate-external-key.
May 3 2021, 9:01 PM
werner committed rGb59af0e2a05a: gpg: Lookup a missing public key of the current card via LDAP. (authored by werner).
gpg: Lookup a missing public key of the current card via LDAP.
May 3 2021, 9:01 PM
werner committed rGb8df8321e1ef: scd: Add option --info to emit KEYPAIRINFO by readkey command. (authored by werner).
scd: Add option --info to emit KEYPAIRINFO by readkey command.
May 3 2021, 9:01 PM
werner committed rG79f5ffb1add9: gpg: Minor restructuring of a function. (authored by werner).
gpg: Minor restructuring of a function.
May 3 2021, 9:01 PM
werner committed rGa456303ae306: gpgconf: Do not i18n an empty string to the PO files meta data. (authored by werner).
gpgconf: Do not i18n an empty string to the PO files meta data.
May 3 2021, 9:01 PM
werner committed rGbbf4bd3bfcb5: agent: Skip unknown unknown ssh curves seen on cards. (authored by werner).
agent: Skip unknown unknown ssh curves seen on cards.
May 3 2021, 9:01 PM
werner committed rGf9198189e35e: doc: Fix option name. (authored by werner).
doc: Fix option name.
May 3 2021, 9:01 PM
werner committed rG26a024057dc6: gpg: No warning in quiet mode for S2K mode 0. (authored by werner).
gpg: No warning in quiet mode for S2K mode 0.
May 3 2021, 9:01 PM
werner committed rG5eec40f3d827: scd: New option --pcsc-shared. (authored by werner).
scd: New option --pcsc-shared.
May 3 2021, 9:01 PM
werner committed rG8bc808a98f3a: w32: Silence a compiler warning in dirmngr.c (authored by werner).
w32: Silence a compiler warning in dirmngr.c
May 3 2021, 9:01 PM
werner closed T1333: GPGSM rejects OCSP responder cert without keyUsage as Resolved.
May 3 2021, 3:52 PM · Bug Report, gnupg
werner added a comment to T1333: GPGSM rejects OCSP responder cert without keyUsage.

RFC-5280 states in 4.2.1.3 for Key Usage:

May 3 2021, 2:30 PM · Bug Report, gnupg
werner added a comment to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows.

The error code is: No Readers Available. With the latest version you should have seen that string.

May 3 2021, 2:04 PM · Restricted Project, scd, Restricted Project, kleopatra
werner added projects to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe): gnupg (gpg23), scd, yubikey.

Meanwhile we did some more tests on Windows and so you many want to try our betas at

May 3 2021, 2:00 PM · yubikey, scd, gnupg (gpg23), Bug Report
werner added a comment to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows.

Can you please clarify this point: If you run on Unix with --disable-ccid-driver, do you get the same behavior as on Windows?

May 3 2021, 8:37 AM · Restricted Project, scd, Restricted Project, kleopatra

Apr 30 2021

werner added a project to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7: MacOS.

Run gpg --debug ipc --card-status to quickly see the communication with the scdaemon.

Apr 30 2021, 10:47 AM · MacOS, yubikey, Bug Report

Apr 29 2021

werner added inline comments to rKLEOPATRA1e77bdf6df5c: Search PKCS#15 keys on ldap servers.
Apr 29 2021, 6:56 PM
werner committed rG7637d39fe20e: scd:p15: Update from current GnuPG 2.3 (authored by werner).
scd:p15: Update from current GnuPG 2.3
Apr 29 2021, 4:52 PM
werner committed rG96577e2e46e4: scd: Rewrite READKEY to allow for compressed points. (authored by werner).
scd: Rewrite READKEY to allow for compressed points.
Apr 29 2021, 4:52 PM
werner committed rG5b8593135fa6: common: Extend the openpgp_curve_to_oid function. (authored by werner).
common: Extend the openpgp_curve_to_oid function.
Apr 29 2021, 4:52 PM
werner committed rGf3c98b8cb5ad: common: New module to compute openpgp fingerprints (authored by werner).
common: New module to compute openpgp fingerprints
Apr 29 2021, 4:52 PM
werner committed rGc825117c5fa5: common: New function to uncompress an ECC public key. (authored by werner).
common: New function to uncompress an ECC public key.
Apr 29 2021, 4:52 PM
werner committed rG473e649ea1a6: common: New function cmp_canon_sexp. (authored by werner).
common: New function cmp_canon_sexp.
Apr 29 2021, 4:52 PM
werner committed rG72a7d45a230b: scd: Extend an internal function to also return the algo. (authored by werner).
scd: Extend an internal function to also return the algo.
Apr 29 2021, 4:52 PM
werner committed rG0eed0ced9bcd: scd: New function send_keyinfo to assist in backporting. (authored by werner).
scd: New function send_keyinfo to assist in backporting.
Apr 29 2021, 4:52 PM
werner committed rG91dd74f3d7e3: scd: New function for iso7816 PSO_CSV. (authored by werner).
scd: New function for iso7816 PSO_CSV.
Apr 29 2021, 4:52 PM
werner committed rG3db99b8861a7: scd: Minor changes to assist in backporting from 2.3 (authored by werner).
scd: Minor changes to assist in backporting from 2.3
Apr 29 2021, 4:52 PM
werner committed rG3ce69d838792: scd: Add new status codes. (authored by werner).
scd: Add new status codes.
Apr 29 2021, 4:52 PM
werner committed rG855d14d390e8: scd: Extend iso7816_select_path (authored by werner).
scd: Extend iso7816_select_path
Apr 29 2021, 4:52 PM
werner committed rGec9e8e0d6a1f: scd: Extend ISO binary and record reading functions. (authored by werner).
scd: Extend ISO binary and record reading functions.
Apr 29 2021, 4:52 PM
werner committed rG8d81fd7c01e8: scd: Fix PC/SC removed card problem (authored by werner).
scd: Fix PC/SC removed card problem
Apr 29 2021, 9:16 AM

Apr 28 2021

werner committed rG1f846823b397: scd:p15: Fix the name of a card. (authored by werner).
scd:p15: Fix the name of a card.
Apr 28 2021, 7:53 PM
werner committed rG178e4eb6555e: build: Allow running sign-release target from the dist dir. (authored by werner).
build: Allow running sign-release target from the dist dir.
Apr 28 2021, 7:53 PM
werner committed rGbb8e3996e44f: scd: Fix problem with reader list becoming empty. (authored by werner).
scd: Fix problem with reader list becoming empty.
Apr 28 2021, 7:53 PM
werner added a comment to T5414: Input/output error (218136625).

Please try to verify on the command line (cmd.exe):

Apr 28 2021, 11:37 AM · Support, gpg4win

Apr 27 2021

werner renamed T5411: After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes. from After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GnuOL does not load, Outlook crashes. to After upgrading from gpg4win 3.1.13 to gpg4win 3.1.15 GpgOL does not load, Outlook crashes..
Apr 27 2021, 2:39 PM · gpg4win, Support
werner added a comment to T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode.

The curve is not defined to be used for ECDH (encryption); in fact it should in general only be used with the EdDSA
algorithm. You need to use "Key-Type: eddsa". Note that the EdDSA signing algorithm is different than the commonly used ECDSA signing algorithm.

Apr 27 2021, 2:39 PM · FAQ, gnupg, OpenPGP
werner added a comment to rC060c378c050e: ecc: Check the input length for the point..

Can you please port this also to 1.8?

Apr 27 2021, 2:34 PM
werner closed T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode as Resolved.
Apr 27 2021, 8:34 AM · FAQ, gnupg, OpenPGP
werner edited projects for T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode, added: gnupg, FAQ; removed gnupg (gpg23), Bug Report.

You can't use ecdh with ed25519.

Apr 27 2021, 8:33 AM · FAQ, gnupg, OpenPGP
werner claimed T5412: Getting "Invalid digest algorithm", when trying to generate ECDH keys, in batch mode.
Apr 27 2021, 8:14 AM · FAQ, gnupg, OpenPGP

Apr 26 2021

werner committed rCa208f6af5033: doc: Clarify gcry_md_setkey for keyed BLAKE hashes. (authored by werner).
doc: Clarify gcry_md_setkey for keyed BLAKE hashes.
Apr 26 2021, 8:13 PM
werner committed rG99db4b0c7fd1: gpg: Do not use import-clean for LDAP keyserver imports. (authored by werner).
gpg: Do not use import-clean for LDAP keyserver imports.
Apr 26 2021, 3:36 PM
werner committed rG4fcfac6feb2a: gpg: Fix mailbox based search via AKL keyserver method. (authored by werner).
gpg: Fix mailbox based search via AKL keyserver method.
Apr 26 2021, 3:36 PM
werner triaged T5410: pinentry-gnome3 no longer functions in Wayland as Normal priority.

Please install the Gnome Key Ring prompter tool or use the plain GTK pinentry.

Apr 26 2021, 2:17 PM · pinentry

Apr 25 2021

werner committed rG100037ac0f55: gpg: Auto import keys specified with --trusted-keys. (authored by werner).
gpg: Auto import keys specified with --trusted-keys.
Apr 25 2021, 8:04 PM
werner committed rGcc5aa68b6310: scd:p15: Fix last commit and improve D-TRUST detection. (authored by werner).
scd:p15: Fix last commit and improve D-TRUST detection.
Apr 25 2021, 4:39 PM
werner committed rG21e3f750bd7d: scd:p15: Shorten the displayed s/n of RSCS cards (authored by werner).
scd:p15: Shorten the displayed s/n of RSCS cards
Apr 25 2021, 3:04 PM
werner committed rG3cbc66410d62: gpg: Replace an obsolete trustdb function. (authored by werner).
gpg: Replace an obsolete trustdb function.
Apr 25 2021, 3:04 PM

Apr 23 2021

werner committed rG0b875aa11adf: agent,w32: Silence the get_peercred failed diagnostic (authored by werner).
agent,w32: Silence the get_peercred failed diagnostic
Apr 23 2021, 10:26 AM
werner closed T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1 as Resolved.

Please have a look at the log:

Apr 23 2021, 9:08 AM · MacOS, Support, scd
werner committed rG84c2d97cca76: agent: Require verbose level 2 for handler started/terminated notices. (authored by werner).
agent: Require verbose level 2 for handler started/terminated notices.
Apr 23 2021, 8:51 AM
werner committed rG883f1a517362: doc: Typo fix (authored by werner).
doc: Typo fix
Apr 23 2021, 8:51 AM
werner committed rG50293ec2ebf2: gpg: Allow decryption w/o public key but with correct card inserted. (authored by werner).
gpg: Allow decryption w/o public key but with correct card inserted.
Apr 23 2021, 8:51 AM

Apr 22 2021

werner committed rG4237a2b0a509: speedo: Automatically select Authenticode signing cert. (authored by werner).
speedo: Automatically select Authenticode signing cert.
Apr 22 2021, 11:34 AM
werner triaged T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd' as Normal priority.
Apr 22 2021, 11:07 AM · gnupg (gpg23), Bug Report
werner committed rGd36c4dc95b72: tests: Make sure that the build keyboxd is used. (authored by werner).
tests: Make sure that the build keyboxd is used.
Apr 22 2021, 11:06 AM
werner committed rG9e24f2a45ce8: scd: Fix PSO_CSV for 512 bit curves (authored by werner).
scd: Fix PSO_CSV for 512 bit curves
Apr 22 2021, 11:06 AM
werner changed the status of T5406: gnupg-2.3.1: 'make check' on all tests tries to use installed 'keyboxd' from Open to Testing.

You are right. The problem is that in a development version we use an envvar to locate the programs, so there is usually no problem because the software has already been installed and the final test doesn't catch this. We should add a version check to all components to catch such problems.

Apr 22 2021, 8:49 AM · gnupg (gpg23), Bug Report
werner triaged T5408: gpgconf should? not list disabled components as Normal priority.

Given that we don't yet support TPM for Windows you should go ahead and apply this patch. tpm should also be removed from the list of components.

Apr 22 2021, 8:33 AM · Bug Report, Windows, gnupg (gpg23)

Apr 21 2021

werner triaged T5407: gpg fails to import second secret key in .pfx (PKCS12) file as Normal priority.
Apr 21 2021, 9:09 PM · gnupg24, gnupg (gpg23), Feature Request, S/MIME
werner committed rG2fce99d73a6a: card: New option --shadow for command list. (authored by werner).
card: New option --shadow for command list.
Apr 21 2021, 9:04 PM
werner committed rG8f2c9cb73538: agent: Silence error messages for READKEY --card (authored by werner).
agent: Silence error messages for READKEY --card
Apr 21 2021, 9:04 PM
werner committed rGec36eca08cdb: gpg: Allow fingerprint based lookup with --locate-external-key. (authored by werner).
gpg: Allow fingerprint based lookup with --locate-external-key.
Apr 21 2021, 6:32 PM