Page MenuHome GnuPG
Feed All Stories

Jun 3 2021

werner committed rC56606331bc2a: Release 1.8.5 (authored by werner).
Release 1.8.5
Jun 3 2021, 7:08 PM
werner committed rC3de8991c8543: ecc: Add a keygrip testcase for cv25519. (authored by werner).
ecc: Add a keygrip testcase for cv25519.
Jun 3 2021, 7:08 PM
werner committed rC853027569ce3: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:08 PM
werner committed rCca121256b146: Prepare NEWS for upcoming release (authored by werner).
Prepare NEWS for upcoming release
Jun 3 2021, 7:08 PM
gniibe committed rC006e51cd83a1: ecc: Fix wrong handling of shorten PK bytes. (authored by gniibe).
ecc: Fix wrong handling of shorten PK bytes.
Jun 3 2021, 7:08 PM
gniibe committed rCa29e058ff114: Fix declaration of internal function _gcry_mpi_get_ui. (authored by gniibe).
Fix declaration of internal function _gcry_mpi_get_ui.
Jun 3 2021, 7:08 PM
jukivili committed rCec7db47e9998: Set vZZ.16b register to zero before use in armv8 gcm implementation (authored by larma).
Set vZZ.16b register to zero before use in armv8 gcm implementation
Jun 3 2021, 7:08 PM
gniibe committed rC03e6d6597198: random: Fix include of config.h. (authored by gniibe).
random: Fix include of config.h.
Jun 3 2021, 7:08 PM
jukivili committed rC761a1a0d30ea: Fix wrong code execution in Poly1305 ARM/NEON implementation (authored by jukivili).
Fix wrong code execution in Poly1305 ARM/NEON implementation
Jun 3 2021, 7:08 PM
werner committed rCffbc5702ab16: mpi: Abort on division by zero also in _gcry_mpi_tdiv_qr. (authored by werner).
mpi: Abort on division by zero also in _gcry_mpi_tdiv_qr.
Jun 3 2021, 7:08 PM
gniibe committed rC3a16c19d4d63: DSA,ECDSA: Fix use of mpi_invm. (authored by gniibe).
DSA,ECDSA: Fix use of mpi_invm.
Jun 3 2021, 7:08 PM
werner committed rCda8623bd6dbf: doc: Fix description of hash algorithms (authored by Sébastien Helleu <flashcode@flashtux.org>).
doc: Fix description of hash algorithms
Jun 3 2021, 7:08 PM
gniibe committed rC90b7339b0654: mpi: Constant time mpi_inv with some conditions. (authored by gniibe).
mpi: Constant time mpi_inv with some conditions.
Jun 3 2021, 7:08 PM
gniibe committed rC99007cbfd104: mpi: Fix the return value of mpi_invm_generic. (authored by gniibe).
mpi: Fix the return value of mpi_invm_generic.
Jun 3 2021, 7:08 PM
gniibe committed rC986aa2728715: mpi: Fix return value of mpi_invm_generic. (authored by gniibe).
mpi: Fix return value of mpi_invm_generic.
Jun 3 2021, 7:08 PM
werner committed rC534a74401810: oops: I meant RFC-8410 (authored by werner).
oops: I meant RFC-8410
Jun 3 2021, 7:08 PM
werner committed rC9fa1f1527abf: ecc: Add OIDs from RFC-4880 as aliases for Ed25519 and Curve25519. (authored by werner).
ecc: Add OIDs from RFC-4880 as aliases for Ed25519 and Curve25519.
Jun 3 2021, 7:08 PM
werner committed rC47e8977d24e5: mpi: Fix flags in mpi_copy for opaque MPI. (authored by gniibe).
mpi: Fix flags in mpi_copy for opaque MPI.
Jun 3 2021, 7:08 PM
werner committed rCcfdc44bf08a3: Release 1.8.6 (authored by werner).
Release 1.8.6
Jun 3 2021, 7:08 PM
werner committed rC31bb4f3210df: mpi: Consider +0 and -0 the same in mpi_cmp. (authored by werner).
mpi: Consider +0 and -0 the same in mpi_cmp.
Jun 3 2021, 7:08 PM
werner committed rCc917ebb48d1b: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:08 PM
werner committed rCd9103048d11b: mpi: Support opaque MPI with gcry_mpi_print. (authored by gniibe).
mpi: Support opaque MPI with gcry_mpi_print.
Jun 3 2021, 7:08 PM
werner committed rC9c42c068c374: build: Allow customization of the signing key (authored by werner).
build: Allow customization of the signing key
Jun 3 2021, 7:08 PM
werner committed rC01b441308838: random/jitterentropy: fix USE_JENT == JENT_USES_GETTIME code path (authored by jukivili).
random/jitterentropy: fix USE_JENT == JENT_USES_GETTIME code path
Jun 3 2021, 7:08 PM
werner committed rC6b79963f3f09: random: Allow for a Unicode random seed file on Windows. (authored by werner).
random: Allow for a Unicode random seed file on Windows.
Jun 3 2021, 7:08 PM
werner committed rCe5eb3eca3c7a: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:08 PM
werner committed rC04c156a48b35: Release 1.8.7 (authored by werner).
Release 1.8.7
Jun 3 2021, 7:08 PM
gniibe committed rC16e855d49ca2: tests: Put a work around to tests/random for macOS. (authored by gniibe).
tests: Put a work around to tests/random for macOS.
Jun 3 2021, 7:08 PM
werner committed rC1d312bc65846: ecc: Add checking key for ECDSA. (authored by gniibe).
ecc: Add checking key for ECDSA.
Jun 3 2021, 7:08 PM
werner committed rC205d841e3ae1: Fix ubsan warnings for i386 build (authored by jukivili).
Fix ubsan warnings for i386 build
Jun 3 2021, 7:08 PM
werner committed rC370e44127287: Add handling for -Og with O-flag munging (authored by jukivili).
Add handling for -Og with O-flag munging
Jun 3 2021, 7:08 PM
werner committed rCa5799f1618aa: Fix previous commit (authored by werner).
Fix previous commit
Jun 3 2021, 7:08 PM
werner committed rC3f42f727a069: Make sure the grcy_get_config string is always null-terminated. (authored by jukivili).
Make sure the grcy_get_config string is always null-terminated.
Jun 3 2021, 7:08 PM
gniibe committed rC707c3c5c511e: cipher: Fix ElGamal encryption for other implementations. (authored by gniibe).
cipher: Fix ElGamal encryption for other implementations.
Jun 3 2021, 7:08 PM
gniibe committed rCbd662c090bd4: ecc: Fix the previous commit. (authored by gniibe).
ecc: Fix the previous commit.
Jun 3 2021, 7:08 PM
gniibe committed rC3f48e3ea37ad: ecc: Check the input length for the point. (authored by gniibe).
ecc: Check the input length for the point.
Jun 3 2021, 7:08 PM
werner committed rC1ceac721abb5: cipher: Extend convenience OID mapping table for AES. (authored by werner).
cipher: Extend convenience OID mapping table for AES.
Jun 3 2021, 7:08 PM
werner committed rC15e9f82fb4b2: Silence compiler warning. (authored by werner).
Silence compiler warning.
Jun 3 2021, 7:08 PM
werner committed rC2fd203e198c5: Minor tweak to gcry_free. (authored by werner).
Minor tweak to gcry_free.
Jun 3 2021, 7:08 PM
gniibe committed rC5def3db3615e: build: _DARWIN_C_SOURCE should be 1. (authored by gniibe).
build: _DARWIN_C_SOURCE should be 1.
Jun 3 2021, 7:08 PM
werner committed rC3283a2958bbe: hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32 (authored by jukivili).
hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32
Jun 3 2021, 7:08 PM
werner committed rCd3d4803ca1b1: Release 1.8.8 (authored by werner).
Release 1.8.8
Jun 3 2021, 7:08 PM
werner committed rC522e3eec5dba: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:08 PM
ikloecker added inline comments to rGff17aee5d10c: dirmngr: New option --ldapserver.
Jun 3 2021, 5:49 PM
ikloecker added inline comments to rG2b4cddf9086f: dirmngr: Allow for non-URL specified ldap keyservers..
Jun 3 2021, 4:14 PM
Saturneric closed T5454: Failed to sign with subkey with a signature function using gpgme_op_keysign as Resolved.
Jun 3 2021, 3:12 PM · FAQ, Support, gpgme
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

I've mentioned this interop issue (and tried to propose clarifying language for the revised standard) in the IETF OpenPGP WG mailing list.

Jun 3 2021, 3:04 PM · Support, gnupg, OpenPGP
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Please excuse my late reply. I was busy with other things over the last few weeks.

Jun 3 2021, 9:58 AM · MacOS, yubikey, Bug Report
gniibe claimed T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..
Jun 3 2021, 8:26 AM · Support, gnupg, OpenPGP
gniibe committed rG9668ee097a14: gpg: Support KEYGRIP search with traditional keyring. (authored by gniibe).
gpg: Support KEYGRIP search with traditional keyring.
Jun 3 2021, 6:32 AM
gniibe added a comment to T5469: GnuPG 2.3 regression: keydb_search failed: Invalid argument.

Here, we use keygrip search: https://dev.gnupg.org/source/gnupg/browse/master/g10/skclist.c$429

Jun 3 2021, 4:52 AM · gnupg (gpg23)
gniibe triaged T5469: GnuPG 2.3 regression: keydb_search failed: Invalid argument as High priority.
Jun 3 2021, 4:48 AM · gnupg (gpg23)

Jun 2 2021

onickolay added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

@dkg I mentioned it just because it was added as (part of the?) solution for Ed25519 issue, i.e. it is not something related to parsing of interoperable format but some further processing when secret key part is sent to the gpg-agent in some intermediate format.

Jun 2 2021, 9:56 PM · Support, gnupg, OpenPGP
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

I think rGba321b60bc3bfc29dfc6fa325dcabad4fac29f9c has nothing to do with interoperable formats -- how things are stored in ~/.gnupg/private-keys-v1.d is unrelated to the interoperable transferable secret key format specified in 4880 or its revisions.

Jun 2 2021, 9:51 PM · Support, gnupg, OpenPGP
Saturneric created T5468: About the API of GpgME to revoke key pairs and subkeys..
Jun 2 2021, 9:08 PM · gpgme, Feature Request
werner added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

It is a different trust model. The man page has some information but we meanwhile doubt that it will ever be of great use. It is over designed to be actually useful. Just don't care. For further questions, please use the mailing lists.

Jun 2 2021, 7:18 PM · gnupg (gpg22)
werner committed rGc17dac5ac3cc: common: Allow for GCM decryption in de-vs mode. (authored by werner).
common: Allow for GCM decryption in de-vs mode.
Jun 2 2021, 7:15 PM
werner committed rGb722fd755c77: sm: Support AES-GCM decryption. (authored by werner).
sm: Support AES-GCM decryption.
Jun 2 2021, 7:12 PM
melodie added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

If I did enable "tofu" that was not on purpose and I would not know how. What are tofu related questions? Is there a doc you can point me to? (Also is tofu.db an annoyance, and if so in which way?)

Jun 2 2021, 6:48 PM · gnupg (gpg22)
werner added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

TOFU is not used by default and thus the tofu.db does only matter if you have enabled TOFU. Its purpose is to track the use of keys and it also stored information which you explictly gave in response to TOFU related questions.

Jun 2 2021, 5:46 PM · gnupg (gpg22)
melodie added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

Hello,
I just hit the same issue in Ubuntu 18.04.5 LTS with gpg version 2.2.4-1ubuntu1.4 and the command line provided on post https://dev.gnupg.org/T3972#127356 by dkg has helped me fix it.
The faulty key was from the Tor project.

Jun 2 2021, 5:20 PM · gnupg (gpg22)
werner removed a project from T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG.: OpenPGP.

Right. However, the SOS thing should then also be used for secret keys. (FWIW, I wrote my last comment while you were writing yours).

Jun 2 2021, 5:14 PM · Support, gnupg, OpenPGP
onickolay added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

@werner isn't it used just for the public key? The secret x25519 key, exported by GnuPG, looks as following (in the way it is stored in file):

Jun 2 2021, 5:11 PM · Support, gnupg, OpenPGP
werner updated subscribers of T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

We invented the 0x40 compression flag to declare that as native curve point format. With the introduction of 448 things got more complicated due to the new IETF statdards for this curev. This is the reason for @gniibe's proposal for a Simple Octet String (SOS) as a new data type in OpenPGP.

Jun 2 2021, 5:06 PM · Support, gnupg, OpenPGP
onickolay added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

Investigated it more, and it looks problem is not in incorrect endianness. Exporting x25519 secret subkey from the GnuPG showed up that we still need to change byte order.
After some experiments I ended up with the following self-explaining code piece, which makes RNP-generated keys to work with GnuPG for import:

repeat:
    if (botan_privkey_create(&pr_key, "Curve25519", "", rng_handle(rng))) {
        goto end;
    }
    /* botan returns key in little-endian, while mpi is big-endian */
    if (botan_privkey_x25519_get_privkey(pr_key, keyle.data())) {
        goto end;
    }
    if ((keyle[31] != 0x45) || (keyle[0] != 0x40)) {
        botan_privkey_destroy(pr_key);
        goto repeat;
    }
    if (botan_privkey_export_pubkey(&pu_key, pr_key)) {
        goto end;
    }
Jun 2 2021, 5:04 PM · Support, gnupg, OpenPGP
werner triaged T5463: gpgconf: Options that gpgconf won't change should be flagged as read-only as Normal priority.

There is also the issue that options flagged as ignore or forced in the global config file won't have an effect either. But indeed we could mark them as non-change.

Jun 2 2021, 5:00 PM · gnupg24, gnupg (gpg23), Feature Request
werner updated the task description for T5466: Release Libgcrypt 1.8.8.
Jun 2 2021, 4:41 PM · libgcrypt, Release Info
werner committed rDdb46d178c38a: swdb: Libgcrypt 1.8.8 (authored by werner).
swdb: Libgcrypt 1.8.8
Jun 2 2021, 3:28 PM
werner placed T5424: GnuPG w32: Expand environment variables when reading registry paths up for grabs.

Well, we have always expanded envvars in registry values. You need to create the value as an REG_EXPAND_SZ type, though.

Jun 2 2021, 3:04 PM · gnupg (gpg22), Restricted Project
werner closed T5466: Release Libgcrypt 1.8.8 as Resolved.
Jun 2 2021, 2:40 PM · libgcrypt, Release Info
werner triaged T5467: Release libgcrypt 1.8.9 as Low priority.
Jun 2 2021, 2:24 PM · libgcrypt, Release Info
werner updated the task description for T5113: Release Libgcrypt 1.8.7.
Jun 2 2021, 1:01 PM · Release Info, libgcrypt
werner triaged T5466: Release Libgcrypt 1.8.8 as Normal priority.
Jun 2 2021, 1:01 PM · libgcrypt, Release Info
werner closed T5423: libgcrypt 1.8 ECDH as Resolved.
Jun 2 2021, 12:57 PM · Debian, libgcrypt
werner moved T5440: _DARWIN_C_SOURCE kind of "must" be 1, not "900000L" from For 1.9 to Backlog on the libgcrypt board.
Jun 2 2021, 12:57 PM · MacOS, libgcrypt, Bug Report
werner moved T5440: _DARWIN_C_SOURCE kind of "must" be 1, not "900000L" from For 1.8 to For 1.9 on the libgcrypt board.
Jun 2 2021, 12:56 PM · MacOS, libgcrypt, Bug Report
werner moved T5440: _DARWIN_C_SOURCE kind of "must" be 1, not "900000L" from Backlog to For 1.8 on the libgcrypt board.
Jun 2 2021, 12:56 PM · MacOS, libgcrypt, Bug Report
werner closed T5195: Incorrect HWCAP2 check for AArch32 as Resolved.

Fixed for 1.8.8

Jun 2 2021, 12:56 PM · libgcrypt, backport, Bug Report
ikloecker added inline comments to rG2b4cddf9086f: dirmngr: Allow for non-URL specified ldap keyservers..
Jun 2 2021, 11:53 AM
onickolay added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

Thanks for investigations! Indeed, we do change byte order when storing/loading private key, as MPI should be big-endian, while curve25519 private key is little endian.
Do I correctly understand that we should store it in the MPI as it is (like with Ed25519)? It would be nice to clarify that in the RFC draft.
Another thing is that in my test even if byte order is not reversed in the secret key (including the attached test key), GnuPG still asks for password, reporting "error sending to agent: Bad passphrase".

Jun 2 2021, 11:47 AM · Support, gnupg, OpenPGP
werner committed rC585f153e1f74: cipher: Extend convenience OID mapping table for AES. (authored by werner).
cipher: Extend convenience OID mapping table for AES.
Jun 2 2021, 11:21 AM
werner committed rCb6de4080a973: Minor tweak to gcry_free. (authored by werner).
Minor tweak to gcry_free.
Jun 2 2021, 11:21 AM
werner committed rG4980fb3c6dde: sm: Support AES-GCM decryption. (authored by werner).
sm: Support AES-GCM decryption.
Jun 2 2021, 11:12 AM
werner edited projects for T5424: GnuPG w32: Expand environment variables when reading registry paths, added: gnupg (gpg22); removed gnupg.
Jun 2 2021, 11:08 AM · gnupg (gpg22), Restricted Project
werner closed T3714: Failing to decrypt due to missing MDC as Resolved.
Jun 2 2021, 11:05 AM · FAQ, kleopatra
werner committed rK81fdcd680c12: Support Authenticated-Enveloped-Data Content Type. (authored by werner).
Support Authenticated-Enveloped-Data Content Type.
Jun 2 2021, 10:59 AM
ikloecker committed rM5bc4e23a57f1: qt: Add separate logging category for result of config loading (authored by ikloecker).
qt: Add separate logging category for result of config loading
Jun 2 2021, 10:57 AM
aheinecke raised the priority of T5424: GnuPG w32: Expand environment variables when reading registry paths from Normal to High.

Hi Werner, I need this for a potentional customer. And generally I need this in config, too. because in support we have to send customers configuration files which they do not need to edit and variables are important because of file system permissions. But most immedialtely I need this for homedir registry.

Jun 2 2021, 10:44 AM · gnupg (gpg22), Restricted Project
ikloecker committed rM5512133de4e9: core: Fix a few checks for number of fields in keylist result parser. (authored by ikloecker).
core: Fix a few checks for number of fields in keylist result parser.
Jun 2 2021, 10:22 AM
werner reopened T5462: gpgconf: Make gpg/keyserver option available again, a subtask of T5461: Kleopatra: Does not change OpenPGP keyserver configured in gpg.conf, as Open.
Jun 2 2021, 7:59 AM · Restricted Project, kleopatra, Bug Report
werner reopened T5462: gpgconf: Make gpg/keyserver option available again as "Open".
Jun 2 2021, 7:59 AM · gnupg (gpg23), Restricted Project
werner 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.
Jun 2 2021, 7:59 AM · Restricted Project, kleopatra, Bug Report
werner closed T5462: gpgconf: Make gpg/keyserver option available again as Resolved.

Because an existing setting in gpg.conf overrides the keyserver set in dirmngr.conf

Jun 2 2021, 7:59 AM · gnupg (gpg23), Restricted Project
Yuri Chornoivan <yurchor@ukr.net> committed rLIBKLEO989871c61a5f: Fix minor typo (authored by Yuri Chornoivan <yurchor@ukr.net>).
Fix minor typo
Jun 2 2021, 7:58 AM
gniibe added a comment to T5369: GnuPG build on Apple with Clang.

jitterentropy is also used in Linux kernel, and some people use clang to build it these days. So, I checked the kernel's one. It is simply compiled -O0 by Makefile, and there's no pragma line now (as of v5.13).

Jun 2 2021, 3:16 AM · libgcrypt, MacOS, Bug Report
gniibe added a comment to T5460: Migration for ABI change (newer mingw).

With sqlite3 using -static-libgcc, I confirmed that GnuPG and its friends are built well with newer mingw on bullseye. And I lightly tested GnuPG on Windows.

Jun 2 2021, 3:07 AM · gpg4win, Windows
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

The problem here appears to be that the "MPI" of the curve25519 secret key is not actually a standard-issue big-endian OpenPGP MPI -- it's an opaque bytestring expected to be passed to the underlying "native" implementation of x25519, in the same way that the secret key is handled for Ed25519.

Jun 2 2021, 1:35 AM · Support, gnupg, OpenPGP
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

investigating the subkey in python:

Jun 2 2021, 1:20 AM · Support, gnupg, OpenPGP
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

looks to me like you've got the byte ordering of the Curve25519 secret subkey reversed from the way that GnuPG expects it.

Jun 2 2021, 1:16 AM · Support, gnupg, OpenPGP
dkg added a comment to T5464: Failure to import Curve25519 ECDH secret subkey to the GnupG..

fwiw, gpg-agent complains that the keys don't match:

Jun 2 2021, 1:06 AM · Support, gnupg, OpenPGP