Page MenuHome GnuPG
Feed Advanced Search

May 10 2022

gniibe edited projects for T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys, added: Restricted Project; removed gnupg.

Applied to 2.2 branch, too.

May 10 2022, 7:29 AM · backport, yubikey, scd, segv, Bug Report
gniibe committed rC5dc97e855bb2: random: Fix rndjent for Windows. (authored by gniibe).
random: Fix rndjent for Windows.
May 10 2022, 7:19 AM
gniibe removed a project from T5971: Yubikey: Removal of device is not detected by PC/SC: gnupg.
May 10 2022, 7:00 AM · Info Needed, yubikey, scd, Bug Report
gniibe added a project to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0: Restricted Project.

Pushed the change to master.

May 10 2022, 6:59 AM · backport, libgcrypt, Bug Report
gniibe committed rG09df630e4be7: tests: Enable tests with keyboxd only when it's configured. (authored by gniibe).
tests: Enable tests with keyboxd only when it's configured.
May 10 2022, 4:57 AM
gniibe added a project to T5966: keyboxd issue building gnupg-2.3.6 (almost identical toT5406): Restricted Project.

Pushed the fix.

May 10 2022, 4:52 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe removed a project from T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: Info Needed.
May 10 2022, 3:50 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I examined all log files you gave us, and I think that scdaemon with PC/SC fails to detect the removal of the USB device.

May 10 2022, 3:48 AM · backport, yubikey, scd, segv, Bug Report
gniibe triaged T5971: Yubikey: Removal of device is not detected by PC/SC as Normal priority.
May 10 2022, 2:51 AM · Info Needed, yubikey, scd, Bug Report
gniibe claimed T5966: keyboxd issue building gnupg-2.3.6 (almost identical toT5406).
May 10 2022, 2:50 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe added a comment to T5966: keyboxd issue building gnupg-2.3.6 (almost identical toT5406).

You need to install a package like sqlite-devel or libsqlite3-dev, so that you can have development header files and library (sqlite3*.h and libsqite3.so) and pkgconfig file (pkgconfig/sqlite3.pc).

May 10 2022, 2:49 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe added a comment to T5966: keyboxd issue building gnupg-2.3.6 (almost identical toT5406).

the link's target doesn't exist

May 10 2022, 1:47 AM · Restricted Project, gnupg (gpg23), Bug Report

May 9 2022

gniibe added a comment to T5966: keyboxd issue building gnupg-2.3.6 (almost identical toT5406).

Please do make at first before invoking make check. It creates symbolic links for executables.

May 9 2022, 9:09 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe added a project to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: backport.
May 9 2022, 6:52 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a project to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: Info Needed.

The patch rG054d14887ef8: scd: Add workaround for ECC attribute on Yubikey. fixes a particular problem of Yubikey implementation where it returns bogus octet for its data object of C1, C2, and C3.

May 9 2022, 4:53 AM · backport, yubikey, scd, segv, Bug Report
gniibe closed T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result as Wontfix.

GCC 11.3 and GCC 12.1 are out with the fix.

May 9 2022, 3:02 AM · toolchain, libgcrypt, Bug Report

May 6 2022

gniibe committed rG054d14887ef8: scd: Add workaround for ECC attribute on Yubikey. (authored by gniibe).
scd: Add workaround for ECC attribute on Yubikey.
May 6 2022, 11:30 AM
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I pushed a workaround.

May 6 2022, 11:28 AM · backport, yubikey, scd, segv, Bug Report
gniibe renamed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys from scdaemon causes libc segfault and clashes with pcsc-lite despite using disable-ccid to Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 6 2022, 11:26 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a project to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: yubikey.
May 6 2022, 10:07 AM · backport, yubikey, scd, segv, Bug Report
gniibe claimed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 6 2022, 8:56 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

For my environment, it is not PC/SC-specific. It also occurs when CCID driver is used.

May 6 2022, 8:42 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

For bcdDevice 5.24, I can replicate the symptom, but only once. After second invocation of gpg --card-status, it works well.

May 6 2022, 8:26 AM · backport, yubikey, scd, segv, Bug Report
gniibe moved T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, FIPS, libgcrypt
gniibe moved T5919: libgcrypt tests/basic.c and tests/keygen.c occasionally fail with "error generating RSA key: Number is not prime" from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, FIPS, libgcrypt, Bug Report
gniibe moved T5918: Disable RSA PKCS #1.5 encryption in FIPS mode from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, libgcrypt, FIPS, Bug Report
gniibe closed T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1 as Resolved.
May 6 2022, 2:16 AM · FIPS, gnupg (gpg23), Bug Report

May 3 2022

gniibe added a project to T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance: backport.
May 3 2022, 11:22 AM · backport, FIPS, libgcrypt
gniibe moved T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance from Backlog to Next on the FIPS board.
May 3 2022, 10:58 AM · backport, FIPS, libgcrypt
gniibe moved T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1 from Next to Ready for release on the FIPS board.
May 3 2022, 10:58 AM · FIPS, gnupg (gpg23), Bug Report
gniibe removed a project from T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1: Restricted Project.
May 3 2022, 10:57 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a comment to T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1.

Fixed in GnuPG 2.3.5.

May 3 2022, 10:57 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a project to T5918: Disable RSA PKCS #1.5 encryption in FIPS mode: Restricted Project.
May 3 2022, 10:49 AM · backport, libgcrypt, FIPS, Bug Report
gniibe added a project to T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1: Restricted Project.
May 3 2022, 10:48 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a project to T5919: libgcrypt tests/basic.c and tests/keygen.c occasionally fail with "error generating RSA key: Number is not prime": Restricted Project.
May 3 2022, 10:48 AM · backport, FIPS, libgcrypt, Bug Report
gniibe added a project to T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance: Restricted Project.
May 3 2022, 10:46 AM · backport, FIPS, libgcrypt
gniibe added a comment to T5931: OpenSSH 8.9, 9.0, and 9.1 can't authenticate with gpg-agent and usb token (Gnuk >= 1.2.16 is required).

Nitrokey Start uses Gnuk as its firmware. You need to upgrade its firmware to version 1.2.16 or newer.
Please note that when upgrading the firmware, your keys will be removed.

May 3 2022, 10:43 AM · gnupg24, workaround, Documentation, gnupg (gpg23), ssh, gpgagent

May 2 2022

gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
KexAlgorithms -sntrup761x25519-sha512@openssh.com
May 2 2022, 10:17 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to rG4fe8859541d0: gpgscm: Fix handling an error for chdir..

Background: I encountered a problem error message shows irrelevant; While it should say 'No such file or directly', it says 'Unknown Packet'.

May 2 2022, 10:01 AM
gniibe committed rG4fe8859541d0: gpgscm: Fix handling an error for chdir. (authored by gniibe).
gpgscm: Fix handling an error for chdir.
May 2 2022, 7:17 AM
gniibe committed rG792374edb676: tests: Fix plain invocation of "make check". (authored by gniibe).
tests: Fix plain invocation of "make check".
May 2 2022, 7:05 AM
gniibe committed rG06e82e997a56: tests: Add a test for Ed25519 keys for non-protected secret. (authored by gniibe).
tests: Add a test for Ed25519 keys for non-protected secret.
May 2 2022, 3:41 AM
gniibe committed rG602c37ac0678: tests: Add a test for Ed25519 keys for non-protected secret. (authored by gniibe).
tests: Add a test for Ed25519 keys for non-protected secret.
May 2 2022, 3:40 AM
gniibe added a comment to T5931: OpenSSH 8.9, 9.0, and 9.1 can't authenticate with gpg-agent and usb token (Gnuk >= 1.2.16 is required).

Please describe what token is used. For my use cases with rGe8fb8e2b3e66: scd: Don't inhibit SSH authentication for larger data if it can., both of Gnuk (>= 1.2.16) and Yubikey (>= 5) work well.

May 2 2022, 1:53 AM · gnupg24, workaround, Documentation, gnupg (gpg23), ssh, gpgagent

Apr 30 2022

gniibe added a comment to T5120: Incompatible Ed25519 secret key (no-encryption).

it would be useful to add a test

Apr 30 2022, 4:14 AM · gnupg (gpg22), Bug Report

Apr 28 2022

gniibe committed rG3fcef7371480: gpg: Handle leading-zeros private key for Ed25519. (authored by gniibe).
gpg: Handle leading-zeros private key for Ed25519.
Apr 28 2022, 8:14 AM
gniibe added a reverting change for rG14de7b1e5904: gpg: Accept Ed25519 private key in SOS which reserves leading zeros.: rG3192939a10df: Revert "gpg: Accept Ed25519 private key in SOS which reserves leading zeros.".
Apr 28 2022, 4:47 AM
gniibe committed rG3192939a10df: Revert "gpg: Accept Ed25519 private key in SOS which reserves leading zeros." (authored by gniibe).
Revert "gpg: Accept Ed25519 private key in SOS which reserves leading zeros."
Apr 28 2022, 4:47 AM
gniibe claimed T5953: batch signature fails with imported ed25519 signing key as of 2.2.34.

Thank you for the report.

Apr 28 2022, 4:45 AM · gnupg (gpg22), Bug Report
gniibe reopened T5120: Incompatible Ed25519 secret key (no-encryption) as "Open".

The fix was not right, because gpg-agent side are not changed. See T5953.

Apr 28 2022, 4:39 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.
Apr 28 2022, 4:39 AM · gnupg, Restricted Project, gpgagent, Bug Report
gniibe reopened T5942: scdaemon is blocking system shutdown as "Open".

Thank you for the explanation. (It's not related to --supervised, I suppose.)

Apr 28 2022, 4:03 AM · Support, scd, gpgagent
gniibe committed rGe5c6ead8172e: po: Update Simplified Chinese Translation. (authored by bobwxc).
po: Update Simplified Chinese Translation.
Apr 28 2022, 2:51 AM

Apr 27 2022

werner awarded T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6 a Cup of Joe token.
Apr 27 2022, 8:34 AM · gnupg (gpg23), Bug Report
gniibe added a project to T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6: Restricted Project.
Apr 27 2022, 6:55 AM · gnupg (gpg23), Bug Report
gniibe committed rGbd5dbdb8131c: kbx: Fix a race condition which results no status report. (authored by gniibe).
kbx: Fix a race condition which results no status report.
Apr 27 2022, 6:54 AM
gniibe claimed T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6.
Apr 27 2022, 6:53 AM · gnupg (gpg23), Bug Report
gniibe added a comment to T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6.

I located the problem. The test program use-exact-key invokes two gpg-es connecting by pipe (one gpg to generate a signature, another gpg to verify the signature). Those multiple gpg-es race accessing keyboxd.

Apr 27 2022, 6:48 AM · gnupg (gpg23), Bug Report

Apr 26 2022

gniibe accepted D553: [2-2] po: Update Simplified Chinese Translation..
Apr 26 2022, 2:22 PM
gniibe committed rGf27a70ecc268: tests: Avoid auto-removal when test fails. (authored by gniibe).
tests: Avoid auto-removal when test fails.
Apr 26 2022, 10:23 AM
gniibe added a comment to T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6.

Another test, it took 30 minutes to replicate.

Apr 26 2022, 9:40 AM · gnupg (gpg23), Bug Report
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

My Yubikey (Yubico.com Yubikey 4/5 OTP+U2F+CCID) (key Ed25519) works fine with OpenSSH using kex of sntrup761x25519-sha512@openssh.com.

Apr 26 2022, 7:44 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to T5948: Flaky test (<keyboxd>tests/openpgp/use-exact-key.scm) failure with gnupg 2.3.5, 2.3.6.

Thank you. I can replicate the issue.

Apr 26 2022, 5:58 AM · gnupg (gpg23), Bug Report
gniibe committed rGd6eb27613305: dirmngr: Fix for C90 compiler. (authored by gniibe).
dirmngr: Fix for C90 compiler.
Apr 26 2022, 5:55 AM
gniibe committed rGba2f2085a95b: tests: Support single invocation with variant. (authored by gniibe).
tests: Support single invocation with variant.
Apr 26 2022, 5:55 AM
gniibe committed rG03e8668dbb27: tests: Let make check-all work again. (authored by gniibe).
tests: Let make check-all work again.
Apr 26 2022, 5:55 AM
gniibe committed rGa9754879d127: tests: Use module_tests for testing agent/. (authored by gniibe).
tests: Use module_tests for testing agent/.
Apr 26 2022, 5:55 AM
gniibe committed rG16720e1f54db: tests: Fix check-all for tests/openpgp. (authored by gniibe).
tests: Fix check-all for tests/openpgp.
Apr 26 2022, 5:55 AM
gniibe committed rGadf24ce61828: tests: Skip testsing g13 when it's not enabled. (authored by gniibe).
tests: Skip testsing g13 when it's not enabled.
Apr 26 2022, 5:55 AM

Apr 25 2022

gniibe committed rG2fc91e15c6be: common:iobuf: Exclude cases with IOBUF_INPUT_TEMP/IOBUF_OUTPUT_TEMP. (authored by gniibe).
common:iobuf: Exclude cases with IOBUF_INPUT_TEMP/IOBUF_OUTPUT_TEMP.
Apr 25 2022, 10:41 AM
gniibe added a comment to T5941: gnupg 2.3.5 hangs on key import.

I pushed the change above. I also pushed another change with IOBUF_INPUT_TEMP.

Apr 25 2022, 10:41 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

Sorry, I was confused. For RSA-4096, data is hashed by gpg-agent and hashed data is signed by a card.

Apr 25 2022, 9:51 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

There is another case: RSA-4096 key. scdaemon rejects data by Invalid value. Unfortunately, there is no fix for this, as it's really too large. Even if scdaemon allows larger data, the card implementation rejects, when it conforms to PKCS #1 standard (data should not be larger than 40% of the modulus).

Apr 25 2022, 4:35 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe committed rG2848fe4c84e5: scd: Fix hard-coded constant for RSA auth. (authored by gniibe).
scd: Fix hard-coded constant for RSA auth.
Apr 25 2022, 4:21 AM
gniibe triaged T5941: gnupg 2.3.5 hangs on key import as High priority.

Thank you for the bug report.

Apr 25 2022, 3:14 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe renamed T5941: gnupg 2.3.5 hangs on key import from gnupg 1.3.5 hangs on key import to gnupg 2.3.5 hangs on key import.
Apr 25 2022, 2:20 AM · Restricted Project, gnupg (gpg23), Bug Report

Apr 22 2022

gniibe added a project to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com: Restricted Project.
Apr 22 2022, 6:50 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe closed T5029: server socket/pipe handling in GnuPG as Resolved.
Apr 22 2022, 6:50 AM · Windows, scd, gnupg (gpg23)
gniibe closed T5538: gpg-agent's keytocard cmd should use a better default creation time. as Resolved.
Apr 22 2022, 6:49 AM · gpgagent, gnupg (gpg23)
gniibe closed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed as Resolved.
Apr 22 2022, 6:48 AM · gnupg (gpg23), scd
gniibe closed T5888: uid changed from [ultimate] to [ unknown] as Resolved.
Apr 22 2022, 6:45 AM · gnupg (gpg23), Bug Report
gniibe closed T5701: Mismatch between enums and config table as Resolved.
Apr 22 2022, 6:44 AM · gnupg (gpg23), Bug Report
gniibe closed T5853: Decrypting OCB encrypted file fails... as Resolved.
Apr 22 2022, 6:44 AM · gnupg (gpg23), Bug Report
gniibe closed T5884: dotlock is not perfect (errornously remove .lock as stale lockfile) as Resolved.
Apr 22 2022, 6:44 AM · Bug Report, gnupg (gpg23)
gniibe closed T5884: dotlock is not perfect (errornously remove .lock as stale lockfile), a subtask of T5109: Initial socket connection to server, as Resolved.
Apr 22 2022, 6:44 AM · gnupg24, gnupg (gpg23)
gniibe added projects to T5917: gpg-agent: Not writing password into file: Restricted Project, gpgagent, Bug Report.
Apr 22 2022, 6:43 AM · Bug Report, gpgagent
gniibe committed rGe529c54fe3a8: agent: Not writing password into file. (authored by gniibe).
agent: Not writing password into file.
Apr 22 2022, 6:36 AM
gniibe committed rGe8fb8e2b3e66: scd: Don't inhibit SSH authentication for larger data if it can. (authored by gniibe).
scd: Don't inhibit SSH authentication for larger data if it can.
Apr 22 2022, 4:52 AM
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

I confirmed that the patch above works with newer Gnuk (>= 1.2.16).

Apr 22 2022, 4:49 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Apr 21 2022

gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

With newer Gnuk Token, following patch should work:

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 05e1f3977..439052f8c 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -5490,6 +5490,11 @@ do_auth (app_t app, ctrl_t ctrl, const char *keyidstr,
           exmode = 1;    /* Use extended length.  */
           le_value = app->app_local->keyattr[2].rsa.n_bits / 8;
         }
+      else if (app->app_local->cardcap.cmd_chaining && indatalen > 254)
+        {
+          exmode = -254; /* Command chaining with max. 254 bytes.  */
+          le_value = 0;
+        }
       else if (indatalen > 255)
         {
           if (!app->app_local->cardcap.ext_lc_le)
Apr 21 2022, 6:43 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe claimed T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
Apr 21 2022, 6:41 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe set External Link to https://bugs.debian.org/1008573 on T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
Apr 21 2022, 6:41 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe created T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
Apr 21 2022, 6:41 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe committed rG3560cd0d9d79: po: Update Simplified Chinese Translation. (authored by gniibe).
po: Update Simplified Chinese Translation.
Apr 21 2022, 6:36 AM
gniibe accepted D551: po: Update Simplified Chinese Translation..
Apr 21 2022, 6:29 AM
gniibe committed rC299e2f934159: tests: Replace custom bit with more generic flags (authored by Jakuje).
tests: Replace custom bit with more generic flags
Apr 21 2022, 3:25 AM
gniibe committed rCf736f3c70182: tests: Expect the RSA PKCS #1.5 encryption to fail in FIPS mode (authored by Jakuje).
tests: Expect the RSA PKCS #1.5 encryption to fail in FIPS mode
Apr 21 2022, 3:25 AM
gniibe committed rCc7709f7b2384: Do not allow PKCS #1.5 padding for encryption in FIPS (authored by Jakuje).
Do not allow PKCS #1.5 padding for encryption in FIPS
Apr 21 2022, 3:25 AM
gniibe committed rCf436bf4451cb: random: Not use secure memory for DRBG instance. (authored by gniibe).
random: Not use secure memory for DRBG instance.
Apr 21 2022, 3:21 AM

Apr 20 2022

gniibe committed rCcd30ed3c0d71: cipher: Change the bounds for RSA key generation round. (authored by gniibe).
cipher: Change the bounds for RSA key generation round.
Apr 20 2022, 8:12 AM