Page MenuHome GnuPG
Feed All Stories

Jun 3 2021

werner committed rC1a0289daa408: build: Convince gcc not to delete NULL ptr checks. (authored by werner).
build: Convince gcc not to delete NULL ptr checks.
Jun 3 2021, 7:09 PM
werner committed rCc5bed9df9633: prime: Avoid rare assertion failure in gcry_prime_check. (authored by werner).
prime: Avoid rare assertion failure in gcry_prime_check.
Jun 3 2021, 7:09 PM
werner committed rC846f8fe8b3be: ecc: Improve gcry_mpi_ec_curve_point (authored by werner).
ecc: Improve gcry_mpi_ec_curve_point
Jun 3 2021, 7:09 PM
werner committed rC5600d2d6b236: Release 1.8.3 (authored by werner).
Release 1.8.3
Jun 3 2021, 7:09 PM
gniibe committed rC20c034865f2d: random: Fix hang of _gcry_rndjent_get_version. (authored by dtzWill).
random: Fix hang of _gcry_rndjent_get_version.
Jun 3 2021, 7:09 PM
werner committed rC6ca6344429e5: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:09 PM
werner committed rC54620a27f450: mpi: New internal function _gcry_mpi_cmpabs. (authored by werner).
mpi: New internal function _gcry_mpi_cmpabs.
Jun 3 2021, 7:09 PM
gniibe committed rC9be06c6b2e5c: ecc: Add blinding for ECDSA. (authored by gniibe).
ecc: Add blinding for ECDSA.
Jun 3 2021, 7:09 PM
werner committed rCbe68b3ee4fd1: ecc: Fix potential unintended freeing of an internal param. (authored by werner).
ecc: Fix potential unintended freeing of an internal param.
Jun 3 2021, 7:09 PM
werner committed rC8cc7cac82ec2: sexp: Fix uninitialized use of a var in the error case. (authored by werner).
sexp: Fix uninitialized use of a var in the error case.
Jun 3 2021, 7:09 PM
werner committed rC347987d4cf29: ecc: Fix possible memory leakage in parameter check of eddsa. (authored by werner).
ecc: Fix possible memory leakage in parameter check of eddsa.
Jun 3 2021, 7:08 PM
werner committed rC7f4de8bab991: doc: Fix example for gcry_sexp_extract_param (authored by werner).
doc: Fix example for gcry_sexp_extract_param
Jun 3 2021, 7:08 PM
werner committed rCabd267bf2393: Fix memory leak in secmem in out of core conditions. (authored by werner).
Fix memory leak in secmem in out of core conditions.
Jun 3 2021, 7:08 PM
werner committed rC4e044b80b296: doc: Update yat2m.c from upstream (libgpg-error) (authored by werner).
doc: Update yat2m.c from upstream (libgpg-error)
Jun 3 2021, 7:08 PM
werner committed rC60224352f4de: ecc: Fix memory leak in the error case of ecc_encrypt_raw (authored by werner).
ecc: Fix memory leak in the error case of ecc_encrypt_raw
Jun 3 2021, 7:08 PM
werner committed rC60885655756d: random: Make sure to re-open /dev/random after a fork (authored by werner).
random: Make sure to re-open /dev/random after a fork
Jun 3 2021, 7:08 PM
werner committed rC99a5babfd1e7: build: Add release make target (authored by werner).
build: Add release make target
Jun 3 2021, 7:08 PM
werner committed rC5b1d022293c5: primes: Avoid leaking bits of the prime test to pageable memory. (authored by werner).
primes: Avoid leaking bits of the prime test to pageable memory.
Jun 3 2021, 7:08 PM
gniibe committed rC813b002eaf30: libgrypt.pc: Provide pkg-config file. (authored by gniibe).
libgrypt.pc: Provide pkg-config file.
Jun 3 2021, 7:08 PM
werner committed rC0973c3f9ee7a: random: use getrandom() on Linux where available (authored by dkg).
random: use getrandom() on Linux where available
Jun 3 2021, 7:08 PM
werner committed rCb3f4e39b2a29: Post release updates (authored by werner).
Post release updates
Jun 3 2021, 7:08 PM
werner committed rC93775172713c: Release 1.8.4 (authored by werner).
Release 1.8.4
Jun 3 2021, 7:08 PM
werner committed rC6faeca72b455: doc: Fix library initialization examples (authored by ametzler).
doc: Fix library initialization examples
Jun 3 2021, 7:08 PM
gniibe committed rC0216418ab23a: libgcrypt.m4: Update from master. (authored by gniibe).
libgcrypt.m4: Update from master.
Jun 3 2021, 7:08 PM
werner committed rC35e002d4b842: random: Initialize variable as requested by valgrind (authored by werner).
random: Initialize variable as requested by valgrind
Jun 3 2021, 7:08 PM
gniibe committed rC4141caabe76a: libgcrypt.m4: Update from master. (authored by gniibe).
libgcrypt.m4: Update from master.
Jun 3 2021, 7:08 PM
gniibe committed rC0147a5e69e49: tests: t-mpi-point: Remove implementation dependent checks. (authored by gniibe).
tests: t-mpi-point: Remove implementation dependent checks.
Jun 3 2021, 7:08 PM
werner committed rCbc05e16bb494: doc: Minor typo fix (authored by werner).
doc: Minor typo fix
Jun 3 2021, 7:08 PM
gniibe committed rC5ad654a33085: dsa,ecdsa: Allocate secure memory for RFC6979 generation. (authored by gniibe).
dsa,ecdsa: Allocate secure memory for RFC6979 generation.
Jun 3 2021, 7:08 PM
gniibe committed rC1862f402d363: ecdsa: Fix unblinding too early. (authored by gniibe).
ecdsa: Fix unblinding too early.
Jun 3 2021, 7:08 PM
gniibe committed rCdb4e9976cc31: dsa,ecdsa: Fix use of nonce, use larger one. (authored by gniibe).
dsa,ecdsa: Fix use of nonce, use larger one.
Jun 3 2021, 7:08 PM
gniibe committed rCd5407b78cca9: ecc: Add mitigation against timing attack. (authored by gniibe).
ecc: Add mitigation against timing attack.
Jun 3 2021, 7:08 PM
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