Page MenuHome GnuPG
Feed Advanced Search

Jul 17 2020

gniibe committed rGdaa2cec6a543: scd: Fix closing reader and reeleasing context in PC/SC. (authored by gniibe).
scd: Fix closing reader and reeleasing context in PC/SC.
Jul 17 2020, 1:45 PM
gniibe triaged T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem as Normal priority.

I just learned that WSAStartup can be called multiple times. So, it doesn't cause any erroneous behavior which I had been afraid of.

Jul 17 2020, 11:33 AM · Restricted Project, gnupg, Windows
gniibe committed rGf484ac2b2d2e: Use gpgrt's new option parser for symcryptrun. (authored by gniibe).
Use gpgrt's new option parser for symcryptrun.
Jul 17 2020, 8:20 AM
gniibe added a comment to T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.

Given the situation we have call of WSAStartup in assuan_sock_init (for Windows), the solution would be:

  • Removal of call of WSAStartup in _init_common_subsystems
  • Even though it is not needed for POSIX system and it is only needed to call WAStartup on Windows, calling assuan_sock_init from each application (including gpg, gpgsm, dirmngr/dirmngr-client, and tools/* which uses libassuan), would be the solution (not perfect one, though, because it allocates sock_ctx)
Jul 17 2020, 4:32 AM · Restricted Project, gnupg, Windows
gniibe added a comment to T4998: scdaemon: PC/SC "No such device" without reader-port.

I am happy that your use case will be supported, and the bug was fixed before the release.
It's me who say "thank you" to you!

Jul 17 2020, 4:28 AM · Restricted Project, scd, Bug Report
gniibe added a comment to T4998: scdaemon: PC/SC "No such device" without reader-port.

Thanks a lot.
I pushed a fix as rG46d185f60397: scd: PC/SC: Don't release the context when it's in use..

Jul 17 2020, 4:16 AM · Restricted Project, scd, Bug Report
gniibe committed rG46d185f60397: scd: PC/SC: Don't release the context when it's in use. (authored by gniibe).
scd: PC/SC: Don't release the context when it's in use.
Jul 17 2020, 4:15 AM
gniibe added a comment to T4998: scdaemon: PC/SC "No such device" without reader-port.

Ah, I identified an issue.
While it's in a loop of trying readers (in select_application in scd/app.c), it should not deallocate resources to access readers, even if reference count == 0.
I'll fix.

Jul 17 2020, 3:56 AM · Restricted Project, scd, Bug Report
gniibe added a comment to T4998: scdaemon: PC/SC "No such device" without reader-port.

Thanks for your testing.

Jul 17 2020, 3:52 AM · Restricted Project, scd, Bug Report
gniibe added a subtask for T3300: scd: Support multiple readers by PC/SC driver: T4998: scdaemon: PC/SC "No such device" without reader-port.
Jul 17 2020, 2:59 AM · Restricted Project, gnupg (gpg23), scd
gniibe added a parent task for T4998: scdaemon: PC/SC "No such device" without reader-port: T3300: scd: Support multiple readers by PC/SC driver.
Jul 17 2020, 2:59 AM · Restricted Project, scd, Bug Report
gniibe claimed T4998: scdaemon: PC/SC "No such device" without reader-port.

Thanks for your report.
Major reason was multiple card readers/tokens were not supported by PC/SC handling of scdaemon, only a single reader was assumed, so, user had to specify one if it's not the first one.
Multiple reader by PC/SC support was added in master (to be 2.3), so, I think the problem is solved in master.

Jul 17 2020, 2:54 AM · Restricted Project, scd, Bug Report
gniibe added a parent task for T3300: scd: Support multiple readers by PC/SC driver: Unknown Object (Maniphest Task).
Jul 17 2020, 2:45 AM · Restricted Project, gnupg (gpg23), scd
gniibe added a comment to T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.

Sorry, I was confused by assuan_socket_ API and assuan_sock_ API.

Jul 17 2020, 2:35 AM · Restricted Project, gnupg, Windows
gniibe committed rG43000b0434b4: gpg-card: Fix type of historyname. (authored by gniibe).
gpg-card: Fix type of historyname.
Jul 17 2020, 2:06 AM

Jul 16 2020

gniibe added a comment to T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.

Here are the fixes:

diff --git a/common/init.c b/common/init.c
index 073c5cd8a..dbdf40527 100644
--- a/common/init.c
+++ b/common/init.c
@@ -161,17 +161,6 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp)
   /* Try to auto set the character set.  */
   set_native_charset (NULL);
Jul 16 2020, 6:43 AM · Restricted Project, gnupg, Windows
gniibe added a comment to T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.

Call of WSAStartup in dirmngr/http.c is no problem, as we define HTTP_NO_WSASTARTUP.

Jul 16 2020, 6:22 AM · Restricted Project, gnupg, Windows
gniibe updated the task description for T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.
Jul 16 2020, 6:18 AM · Restricted Project, gnupg, Windows
gniibe committed rG8abf065307ff: common: Avoid undefined behavior of left shift operator. (authored by gniibe).
common: Avoid undefined behavior of left shift operator.
Jul 16 2020, 4:20 AM
gniibe added a comment to T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking.

This fix reveals the problem of: T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem

Jul 16 2020, 3:11 AM · Restricted Project, Windows, libassuan, Bug Report
gniibe updated the task description for T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.
Jul 16 2020, 3:06 AM · Restricted Project, gnupg, Windows
gniibe created T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem.
Jul 16 2020, 3:03 AM · Restricted Project, gnupg, Windows

Jul 15 2020

gniibe committed rG8904b18822fc: regexp: Fix generation of _unicode_mapping.c. (authored by gniibe).
regexp: Fix generation of _unicode_mapping.c.
Jul 15 2020, 7:30 AM
gniibe committed rGb4cbb5f58a00: tools: Use internal regexp routines. (authored by gniibe).
tools: Use internal regexp routines.
Jul 15 2020, 7:30 AM
gniibe committed rG199309190a0b: gpg: Add regular expression support. (authored by gniibe).
gpg: Add regular expression support.
Jul 15 2020, 7:30 AM
gniibe committed rG1d1f2aa94370: regexp: Import change from JimTcl. (authored by gniibe).
regexp: Import change from JimTcl.
Jul 15 2020, 7:30 AM
gniibe committed rEc564d8c5a0e7: w32: Add gpgrt_fcancel to the definition. (authored by gniibe).
w32: Add gpgrt_fcancel to the definition.
Jul 15 2020, 7:02 AM
gniibe committed rG91cb46d948db: regexp: Import change from JimTcl. (authored by gniibe).
regexp: Import change from JimTcl.
Jul 15 2020, 2:45 AM
gniibe added a comment to T4992: ssh Yubikey not recognized, but Yubikey works with GPG well.

A reference might help:
https://blogs.itemis.com/en/openpgp-on-the-job-part-8-ssh-with-openpgp-and-yubikey

Jul 15 2020, 2:16 AM · ssh, yubikey, Bug Report, gpg4win
gniibe added a comment to T3763: ECDH - encryption with obfuscated size of the symmetric key.

@mbrinkers : I think that it was fixed in GnuPG 2.2.21 by T4908: ECDH with AES-128 decryption failure when fully padded.
It was unfortunate that this bug report didn't work to solve problem, with malformed data and discussion went to unrelated thing.

Jul 15 2020, 2:01 AM · OpenPGP, gnupg (gpg23)

Jul 14 2020

gniibe committed rCe0dabf74bf27: ecc: Support reading EC point in compressed format for good curves. (authored by gniibe).
ecc: Support reading EC point in compressed format for good curves.
Jul 14 2020, 9:13 AM
gniibe added a comment to T4992: ssh Yubikey not recognized, but Yubikey works with GPG well.

So, where does "ssh-add" command come from? IIUC, it is from OpenSSH.

Jul 14 2020, 8:40 AM · ssh, yubikey, Bug Report, gpg4win
gniibe added a comment to T4992: ssh Yubikey not recognized, but Yubikey works with GPG well.

You mean running OpenSSH (and its tool ssh-add) on Windows, right?
It is not supported. PuTTY is supported.

Jul 14 2020, 3:59 AM · ssh, yubikey, Bug Report, gpg4win

Jul 13 2020

gniibe added a comment to T4951: Support point compression in Libgcrypt.
  • compressed representation of EC point can be used in:
    • public key
    • (exporting) private key
    • signature
    • ECDH ephemeral key
  • Accepting compressed representation,for the initial implementation, I'd like to limit our effort for curves of NIST and Brainpool, except NIST P-224, which p = 3 mod 4.
Jul 13 2020, 10:06 AM · Feature Request, libgcrypt
gniibe claimed T4975: undefined-shift in block_filter.
Jul 13 2020, 4:18 AM · gnupg (gpg22), Bug Report
gniibe triaged T4977: dirmngr not working with linux kernel parameter ipv6.disable=1 as Normal priority.
Jul 13 2020, 3:14 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report
gniibe changed the status of T4977: dirmngr not working with linux kernel parameter ipv6.disable=1 from Open to Testing.

Pushed fix to master and STABLE-BRANCH-2-2.

Jul 13 2020, 3:13 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report
gniibe committed rGce793fc2f838: dirmngr: Handle EAFNOSUPPORT at connect_server. (authored by gniibe).
dirmngr: Handle EAFNOSUPPORT at connect_server.
Jul 13 2020, 3:13 AM
gniibe committed rG109d16e8f644: dirmngr: Handle EAFNOSUPPORT at connect_server. (authored by gniibe).
dirmngr: Handle EAFNOSUPPORT at connect_server.
Jul 13 2020, 3:11 AM
gniibe added a comment to T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.

Thanks for your log.

Jul 13 2020, 2:54 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report

Jul 10 2020

gniibe added a comment to T4951: Support point compression in Libgcrypt.

(3) _gcry_ecc_os2ec in libgcrypt/cipher/ecc-misc.c should be modified to support parsing compressed representation.

Jul 10 2020, 8:19 AM · Feature Request, libgcrypt
gniibe added a comment to T4975: undefined-shift in block_filter.

While I see that it's not the matter of actual use case (but how gpg can be immune to fuzzing), code clean up would be good here.

Jul 10 2020, 4:34 AM · gnupg (gpg22), Bug Report
gniibe added a comment to D503: fix undefined-shift in block_filter.

Thanks for the patch.
I see your point in T4975: undefined-shift in block_filter.
You are right that we have a problem of possible overflow (which could be kicked by fuzzing) here.
(The actual impact would be small, though).

Jul 10 2020, 4:26 AM
gniibe claimed T4951: Support point compression in Libgcrypt.
Jul 10 2020, 3:41 AM · Feature Request, libgcrypt
gniibe added a comment to T4951: Support point compression in Libgcrypt.

What kind of API should we offer?
(1) offering something like q@comp name for gcry_mpi_ec_get_mpi
But...
If the intended use case will be in create_request function in gpg/sm/certreqgen.c, the 'q' is already generated in the form of SEXP.
It is up to an application (gpgsm), to convert non-compressed point representation to compressed point representation, here.

Jul 10 2020, 3:40 AM · Feature Request, libgcrypt
gniibe changed the status of T4246: GnuPG master does not allow decryption with bad usage flags (regression), a subtask of T4417: Work needed for gnupg 2.3, from Open to Testing.
Jul 10 2020, 3:04 AM · gnupg (gpg23)
gniibe changed the status of T4246: GnuPG master does not allow decryption with bad usage flags (regression) from Open to Testing.
Jul 10 2020, 3:04 AM · Restricted Project, Bug Report, gnupg (gpg23)
gniibe committed rG31ae0718ba10: gpg: For decryption, support use of a key with no 'encrypt' usage. (authored by gniibe).
gpg: For decryption, support use of a key with no 'encrypt' usage.
Jul 10 2020, 3:03 AM

Jul 9 2020

gniibe claimed T4246: GnuPG master does not allow decryption with bad usage flags (regression).
Jul 9 2020, 8:20 AM · Restricted Project, Bug Report, gnupg (gpg23)
gniibe added a comment to T4246: GnuPG master does not allow decryption with bad usage flags (regression).

Or this (don't allow anon keys for different usage):

diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c
index 14cbdbb0f..b8d4059cd 100644
--- a/g10/pubkey-enc.c
+++ b/g10/pubkey-enc.c
@@ -91,9 +91,6 @@ get_session_key (ctrl_t ctrl, struct pubkey_enc_list *list, DEK *dek)
       if (err)
         break;
Jul 9 2020, 8:20 AM · Restricted Project, Bug Report, gnupg (gpg23)
gniibe added a comment to T4246: GnuPG master does not allow decryption with bad usage flags (regression).

Do you mean something like this?

Jul 9 2020, 8:11 AM · Restricted Project, Bug Report, gnupg (gpg23)
gniibe changed the status of T4688: `make distcheck` fails trying to make `rst/gpgme-python-howto.rst` from Open to Testing.

Fixed in rM1b840a151ad7: python: Fix how to generate documentation..

Jul 9 2020, 7:23 AM · Restricted Project, gpgme, Bug Report
gniibe changed the status of T4915: Cannot compile on macOS Mojave (utf8.c) from Open to Testing.
Jul 9 2020, 7:07 AM · Restricted Project, gnupg (gpg23), Bug Report
gniibe changed the status of T4973: Cross build problem with v1.38 from Open to Testing.
Jul 9 2020, 7:05 AM · Restricted Project, gpgrt
gniibe added a parent task for T4160: ed488 support: T4417: Work needed for gnupg 2.3.
Jul 9 2020, 7:00 AM · gnupg24, gnupg (gpg23), Feature Request
gniibe added a subtask for T4417: Work needed for gnupg 2.3: T4160: ed488 support.
Jul 9 2020, 7:00 AM · gnupg (gpg23)
gniibe added a parent task for T4246: GnuPG master does not allow decryption with bad usage flags (regression): T4417: Work needed for gnupg 2.3.
Jul 9 2020, 6:55 AM · Restricted Project, Bug Report, gnupg (gpg23)
gniibe added a subtask for T4417: Work needed for gnupg 2.3: T4246: GnuPG master does not allow decryption with bad usage flags (regression).
Jul 9 2020, 6:55 AM · gnupg (gpg23)
gniibe changed the status of T4160: ed488 support from Open to Testing.

It's in master (to be gnupg 2.3).
Enjoy.

Jul 9 2020, 6:53 AM · gnupg24, gnupg (gpg23), Feature Request

Jul 7 2020

gniibe committed rG34c9cfd3d772: po: Update Japanese Translation. (authored by gniibe).
po: Update Japanese Translation.
Jul 7 2020, 2:45 AM

Jul 2 2020

gniibe added a comment to T4981: internationalization (support UNICODE/UTF-8 character set).

It seems that nl_langinfo(CODESET) returns US-ASCII on your system.

Jul 2 2020, 8:16 AM · i18n, FreeBSD, Feature Request
gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

Yes, it will fix the problem on x32, I suppose.
If it's difficult for dpkg, for some reason for now, workaround for gpgme packaging is disabling pie hardening for x32 until pie will be its compiler default.
For gpgme, it is only test binaries which matter (pie or not), so, the impact (for x32) is minimum.

Jul 2 2020, 2:15 AM · Debian, gpgme

Jul 1 2020

gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

Some information of Qt5 about -fpic:

Jul 1 2020, 8:49 AM · Debian, gpgme
gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

Debian's GCC build for PIE default: https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules.defs#L1400

Jul 1 2020, 5:09 AM · Debian, gpgme
gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

Here is my understanding. My point is it's not problem of gpgme. To fix it correctly, I think that dpkg should be fixed and it would be needed to fix Qt too.

Jul 1 2020, 4:52 AM · Debian, gpgme

Jun 30 2020

gniibe committed rG45398518fb76: ecc: Support Ed448/X448 key generation. (authored by gniibe).
ecc: Support Ed448/X448 key generation.
Jun 30 2020, 7:22 AM
gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.
Jun 30 2020, 6:44 AM · Debian, gpgme
gniibe added a comment to T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

I think that it is the problem of dpkg to override the compiler flag by the spec file. When compiler default is -fPIE, it works well. If not (for the case of x32), it fails.
In the past, hurd-i386 had same issue, but compiler default seems to be now -fPIE, thus no problem.

Jun 30 2020, 6:06 AM · Debian, gpgme
gniibe triaged T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic as Normal priority.
Jun 30 2020, 4:36 AM · Debian, gpgme
gniibe claimed T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic.

Thanks for your report.

Jun 30 2020, 4:34 AM · Debian, gpgme

Jun 26 2020

gniibe added a comment to T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.

When I test it on Debian, disabling by,

Jun 26 2020, 7:25 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report
gniibe claimed T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.
Jun 26 2020, 7:06 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report
gniibe added a comment to T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.

Please get log of dirmngr, by putting

log-file /run/user/<YOURNUMBER-LIKE-1000>/dirmngr.log
Jun 26 2020, 7:04 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report

Jun 24 2020

gniibe added a comment to T4979: enable-ssh-support in windows is broken..

I think the feature is not (yet) supported on Windows.
Please see: T3883: Add Win32-OpenSSH support to gpg-agent's ssh-agent

Jun 24 2020, 4:05 AM · ssh, Duplicate, Bug Report
gniibe added a comment to D505: Ed448 support for GnuPG.

Pushed to master as rGa763bb2580b0: gpg,agent: Support Ed448 signing..

Jun 24 2020, 3:17 AM
gniibe committed rGa763bb2580b0: gpg,agent: Support Ed448 signing. (authored by gniibe).
gpg,agent: Support Ed448 signing.
Jun 24 2020, 3:16 AM

Jun 23 2020

gniibe updated the diff for D505: Ed448 support for GnuPG.

Update to [rGc94eea15d}.
Hash defaults to SHA512.

Jun 23 2020, 3:56 AM
gniibe committed rGc94eea15d684: ecc: Use "cv448" to specify key using X448. (authored by gniibe).
ecc: Use "cv448" to specify key using X448.
Jun 23 2020, 3:21 AM
gniibe committed rC1db1dc7945b1: ecc: Fix length computation. (authored by gniibe).
ecc: Fix length computation.
Jun 23 2020, 3:11 AM

Jun 19 2020

gniibe added a comment to D505: Ed448 support for GnuPG.

(1) Has no (flags eddsa) in key in SEXP.
(2) Has no (flags eddsa) and no (hash-algo shake256) in data to be signed in SEXP.
(3) Has no (flags eddsa) and no (hash-algo shake256) in data to be verified in SEXP.
(4) Uses SHA256 for hashing of OpenPGP data

Jun 19 2020, 8:14 AM
gniibe updated the diff for D505: Ed448 support for GnuPG.

Update to rG4bdade5b0bea: agent: Use get_pk_algo_from_key.

Jun 19 2020, 8:12 AM
gniibe committed rG4bdade5b0bea: agent: Use get_pk_algo_from_key. (authored by gniibe).
agent: Use get_pk_algo_from_key.
Jun 19 2020, 7:47 AM
gniibe committed rGd2e4aa5ee4c5: agent: Clean up for getting info from SEXP. (authored by gniibe).
agent: Clean up for getting info from SEXP.
Jun 19 2020, 7:07 AM
gniibe committed rGabc6a3100a33: agent: A little clean up. (authored by gniibe).
agent: A little clean up.
Jun 19 2020, 7:07 AM

Jun 18 2020

gniibe committed rCf2847d56cce2: ecc: Fix the condition for EdDSA data handling. (authored by gniibe).
ecc: Fix the condition for EdDSA data handling.
Jun 18 2020, 6:52 AM
gniibe committed rCa6177e1bc948: ecc: For Ed448, it's only for EdDSA. (authored by gniibe).
ecc: For Ed448, it's only for EdDSA.
Jun 18 2020, 6:52 AM
gniibe committed rCba78ad8f1967: ecc: Support EdDSA with context and enabling PH(M). (authored by gniibe).
ecc: Support EdDSA with context and enabling PH(M).
Jun 18 2020, 4:50 AM
gniibe committed rC2856ac14ae3e: ecc: Change EdDSA internal API. (authored by gniibe).
ecc: Change EdDSA internal API.
Jun 18 2020, 2:54 AM

Jun 17 2020

gniibe committed rC1cf497546946: ecc: Support "label" for EdDSA context in data. (authored by gniibe).
ecc: Support "label" for EdDSA context in data.
Jun 17 2020, 10:02 AM
gniibe committed rCd51a9c259d49: ecc: Initialize key before handling data. (authored by gniibe).
ecc: Initialize key before handling data.
Jun 17 2020, 10:02 AM
gniibe committed rC9a640eba6dd7: ecc: Add new flag "prehash". (authored by gniibe).
ecc: Add new flag "prehash".
Jun 17 2020, 9:46 AM
gniibe committed rCb1721f9b291a: ecc: No (flags eddsa) required for Ed448. (authored by gniibe).
ecc: No (flags eddsa) required for Ed448.
Jun 17 2020, 5:48 AM
gniibe committed rC5585ee494708: ecc: Support Ed448 by _gcry_ecc_compute_public. (authored by gniibe).
ecc: Support Ed448 by _gcry_ecc_compute_public.
Jun 17 2020, 5:48 AM
gniibe added a comment to D505: Ed448 support for GnuPG.

The changes just follow the existing practice of Ed25519, which does:

Jun 17 2020, 3:21 AM

Jun 16 2020

gniibe created D505: Ed448 support for GnuPG.
Jun 16 2020, 9:30 AM
gniibe committed rCc15cc1a38199: ecc: Fix Ed448 key generation. (authored by gniibe).
ecc: Fix Ed448 key generation.
Jun 16 2020, 9:24 AM
gniibe committed rCc7779e499e90: ecc,test: Add testing Ed448. (authored by gniibe).
ecc,test: Add testing Ed448.
Jun 16 2020, 4:26 AM
gniibe committed rCd1baad35c650: ecc: Support Ed448 for verify. (authored by gniibe).
ecc: Support Ed448 for verify.
Jun 16 2020, 4:26 AM
gniibe committed rCe25446ecc044: ecc: Support Ed448 for key generation. (authored by gniibe).
ecc: Support Ed448 for key generation.
Jun 16 2020, 4:26 AM
gniibe committed rC951b37c50386: ecc: Support Ed448 signing. (authored by gniibe).
ecc: Support Ed448 signing.
Jun 16 2020, 4:26 AM