Page MenuHome GnuPG
Feed Advanced Search

Dec 9 2020

gniibe committed rC264024b0a59f: Apply libgcrypt-1.8.5-kdf-selftest.patch (authored by gniibe).
Apply libgcrypt-1.8.5-kdf-selftest.patch
Dec 9 2020, 9:17 AM
gniibe committed rCcc8d98c5ec48: Apply libgcrypt-1.8.4-tests-fipsmode.patch (authored by gniibe).
Apply libgcrypt-1.8.4-tests-fipsmode.patch
Dec 9 2020, 9:17 AM
gniibe committed rC6a37c312da7c: Apply libgcrypt-1.8.4-fips-keygen.patch (authored by gniibe).
Apply libgcrypt-1.8.4-fips-keygen.patch
Dec 9 2020, 9:17 AM
gniibe committed rCd508f7358d9e: Apply libgcrypt-1.8.3-md-fips-enforce.patch (authored by gniibe).
Apply libgcrypt-1.8.3-md-fips-enforce.patch
Dec 9 2020, 9:17 AM
gniibe committed rC6c1ccb85b763: Apply libgcrypt-1.8.3-fips-ctor.patch (authored by gniibe).
Apply libgcrypt-1.8.3-fips-ctor.patch
Dec 9 2020, 9:17 AM
gniibe committed rCb660f1c8fb39: Apply libgcrypt-1.8.3-fips-enttest.patch (authored by gniibe).
Apply libgcrypt-1.8.3-fips-enttest.patch
Dec 9 2020, 9:17 AM
gniibe committed rC2f6cc83f0c74: Apply libgcrypt-1.8.3-cmac-selftest.patch (authored by gniibe).
Apply libgcrypt-1.8.3-cmac-selftest.patch
Dec 9 2020, 9:17 AM
gniibe committed rC3c9c4647d147: Apply libgcrypt-1.7.3-fips-reqs.patch (authored by gniibe).
Apply libgcrypt-1.7.3-fips-reqs.patch
Dec 9 2020, 9:17 AM
gniibe committed rGa9aa30ed2c2c: scd:ccid:spr532: Extend abort_cmd for initialization time. (authored by gniibe).
scd:ccid:spr532: Extend abort_cmd for initialization time.
Dec 9 2020, 4:59 AM
gniibe committed rGf50373027222: scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup. (authored by gniibe).
scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.
Dec 9 2020, 4:59 AM
gniibe committed rGffabc29d5ead: scd:ccid: Revert the addition of libusb_clear_halt for EP_INTR. (authored by gniibe).
scd:ccid: Revert the addition of libusb_clear_halt for EP_INTR.
Dec 9 2020, 4:43 AM
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

I checked the development log for the addition of:

libusb_clear_halt (handle->idev, handle->ep_intr);
Dec 9 2020, 4:35 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

I have another yubikey neo but its clean. Can it help it?

Dec 9 2020, 1:30 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Changing modes will I lose/change my OTP and FIDO codes?

Dec 9 2020, 12:38 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 8 2020

gniibe renamed T5167: GnuPG 2.25 still have problems related to Yubikey NEO. from GnuPG 2.25 still have problems related to Yubikey. to GnuPG 2.25 still have problems related to Yubikey NEO..
Dec 8 2020, 12:01 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe triaged T5167: GnuPG 2.25 still have problems related to Yubikey NEO. as High priority.
Dec 8 2020, 12:00 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Following device (a bit older than yours, I guess) works well:

DBG: ccid-driver: idVendor: 1050  idProduct: 0112  bcdDevice: 0334

When I configure it to OTP+FIDO+CCID, it also works for me, it is:

DBG: ccid-driver: idVendor: 1050  idProduct: 0116  bcdDevice: 0334
Dec 8 2020, 11:58 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe committed rG946555ea3ceb: scd:yubikey: Fix support of Yubikey NEO. (authored by gniibe).
scd:yubikey: Fix support of Yubikey NEO.
Dec 8 2020, 9:46 AM
gniibe committed rGeda3c688fc2e: agent: Allow decryption with card but no file. (authored by gniibe).
agent: Allow decryption with card but no file.
Dec 8 2020, 7:27 AM
gniibe committed rG9beab36dfa39: agent: Clean up the API of agent_pkdecrypt. (authored by gniibe).
agent: Clean up the API of agent_pkdecrypt.
Dec 8 2020, 7:27 AM
gniibe changed the status of T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key, a subtask of T5125: Kleopatra: Generate OpenPGP public key for OpenPGP card key, from Open to Testing.
Dec 8 2020, 7:14 AM · kleopatra
gniibe changed the status of T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key from Open to Testing.

Pushed the change by Ingo.

Dec 8 2020, 7:14 AM
gniibe added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

I finally recognize this change: rG638526d37fee: agent: Allow signing with card key even without a stub key..
I should have seen this yesterday.

Dec 8 2020, 7:12 AM
gniibe committed rGcbb0e069f55b: agent: Allow pksign operation with card but no file. (authored by gniibe).
agent: Allow pksign operation with card but no file.
Dec 8 2020, 5:25 AM
gniibe created T5170: card: Allow use cases with no corresponding *.key file under private-keys-v1.d.
Dec 8 2020, 4:10 AM · Restricted Project, gnupg (gpg23)
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thanks a lot.
Let me explain the situation.

Dec 8 2020, 2:33 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 7 2020

gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thank you for the information.
In the log, the driver detects removal of card wrongly.
That's the cause of this problem.

Dec 7 2020, 5:38 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe committed rE9ee011259f81: build: Use AC_CHECK_TOOL to detect objdump for cross build. (authored by gniibe).
build: Use AC_CHECK_TOOL to detect objdump for cross build.
Dec 7 2020, 4:59 AM
gniibe accepted D503: fix undefined-shift in block_filter.
Dec 7 2020, 4:07 AM
gniibe added a comment to D506: build: Make configure.ac for lock-obj-pub.native.h ideomatic.

Pushed in rE9ee011259f81: build: Use AC_CHECK_TOOL to detect objdump for cross build..

Dec 7 2020, 4:04 AM
gniibe accepted D506: build: Make configure.ac for lock-obj-pub.native.h ideomatic.

Thank you. I'm going to apply it, modifying a bit.

Dec 7 2020, 4:00 AM
gniibe added a comment to T5166: gpg --quick-gen-key userid card fails on first run resp. for unknown key.

I think that the semantics of gpg --quick-gen-key <KEY> card (currently) assumes keys are available on card.
IIUC, it is for some specific (very special) use case to specify same key creation time to the key on card.
I don't know well about this use case.

Dec 7 2020, 2:53 AM
gniibe claimed T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please show us the output of gpg --card-status, and your configuration if you have something special. Are you using Yubikey also for gpg's signing, or is it only for SSH?

Dec 7 2020, 2:44 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe changed the status of T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card from Open to Testing.

Backported.

Dec 7 2020, 2:16 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rG5a03bf61304d: scd:openpgp: Fix writing ECC key to card. (authored by gniibe).
scd:openpgp: Fix writing ECC key to card.
Dec 7 2020, 2:15 AM
gniibe committed rG1cd615afe301: gpg,card: Allow no version information of Yubikey. (authored by gniibe).
gpg,card: Allow no version information of Yubikey.
Dec 7 2020, 2:10 AM
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

We need another patch, because there are two places for gpg --card-edit and gpg-card to check OpenPGPcard's version number if it's >= 2 or not.

Dec 7 2020, 2:01 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Dec 4 2020

gniibe added a comment to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

if I am running master, it is now possible to have a setup where the same encryption key is shared by and usable from multiple smart cards?

Dec 4 2020, 8:30 AM · Restricted Project, gnupg, Feature Request

Dec 3 2020

gniibe triaged T5161: scd: For NetKey cards KEYINFO with keygrip fails as Normal priority.
Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe claimed T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I think that T5150 was also not fixed completely.

Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe committed rG87d2c579cc38: scd:nks: Fix caching keygrip (more). (authored by gniibe).
scd:nks: Fix caching keygrip (more).
Dec 3 2020, 8:25 AM
gniibe added a comment to T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I found a bug which resulted "Not Found <SCD>" when "SCD KEYINFO" is used with "--data" or "--".
It is fixed in rG54b88ae46062: scd: Fix KEYINFO command with --data option..

Dec 3 2020, 7:44 AM · Restricted Project, scd
gniibe committed rG54b88ae46062: scd: Fix KEYINFO command with --data option. (authored by gniibe).
scd: Fix KEYINFO command with --data option.
Dec 3 2020, 7:32 AM
gniibe edited projects for T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card, added: gnupg, backport; removed gnupg (gpg22).

Fixed in master. I will backport to 2.2.

Dec 3 2020, 7:08 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rGa25c99b156ca: scd:openpgp: Fix writing ECC key to card. (authored by gniibe).
scd:openpgp: Fix writing ECC key to card.
Dec 3 2020, 7:07 AM
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

I was wrong. Patch is being updated...

Dec 3 2020, 6:33 AM · Restricted Project, gnupg, scd, Bug Report
gniibe committed rM7a4fe82a017b: python: Fix key_export*. (authored by gniibe).
python: Fix key_export*.
Dec 3 2020, 4:30 AM
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.
Dec 3 2020, 3:54 AM
gniibe committed rC9769b40b54cf: tests: Put a work around to tests/random for macOS. (authored by gniibe).
tests: Put a work around to tests/random for macOS.
Dec 3 2020, 3:54 AM
gniibe claimed T5149: Incorrect error handling in export_key_minimal().

Thanks. Fixed in rM7a4fe82a017b: python: Fix key_export*..

Dec 3 2020, 3:40 AM · Python, gpgme, Bug Report
gniibe triaged T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac as Normal priority.
Dec 3 2020, 3:11 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe changed the status of T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac from Open to Testing.
Dec 3 2020, 3:11 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a project to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac: Restricted Project.

So, I'm going to push D513 to both of 1.8 and master (to be 1.9).

Dec 3 2020, 1:07 AM · Restricted Project, MacOS, libgcrypt, Bug Report

Dec 2 2020

gniibe added a comment to T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I can't see how it occurs. "SCE KEYINFO" and "SCD READKEY" with keygrip both goes exactly same code path (the difference is only the "action" argument).

Dec 2 2020, 9:13 AM · Restricted Project, scd
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

You better wipe ecc_d_padded or use xtrymalloc_secure.

Dec 2 2020, 9:07 AM · Restricted Project, gnupg, scd, Bug Report
gniibe triaged T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card as High priority.
Dec 2 2020, 4:07 AM · Restricted Project, gnupg, scd, Bug Report
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

Here is a patch:

Dec 2 2020, 4:06 AM · Restricted Project, gnupg, scd, Bug Report
gniibe claimed T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.
Dec 2 2020, 3:32 AM · Restricted Project, gnupg, scd, Bug Report
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

In future, please try to minimize your log. Your log actually includes information of the session of keytocard before setting key attributes correctly.

Dec 2 2020, 3:31 AM · Restricted Project, gnupg, scd, Bug Report
gniibe removed a project from T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac: Info Needed.

I created D513: Support macOS build with SIP by using posix_spawn in tests/random, which is more conservative; It only affects build under macOS.

Dec 2 2020, 2:22 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe created D513: Support macOS build with SIP by using posix_spawn in tests/random.
Dec 2 2020, 2:17 AM

Dec 1 2020

gniibe closed T5151: GPGME++ : bad passphrase problems as Resolved.
Dec 1 2020, 5:34 AM · segv, gpgme, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

BTW, I'm not sure if the claim in T5009#136688 is correct.

Dec 1 2020, 4:18 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

See also: https://dev.gnupg.org/T5009#136688

Dec 1 2020, 3:16 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

See my comment in: https://dev.gnupg.org/T5024#139701

Dec 1 2020, 3:10 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5024: libtool problem for some platforms for 'make check' (program built with -no-install won't work without installation).

For macOS, with SIP, some program like libgcrypt/tests/random fails, because the hack for DYLD_LIBRARY_PATH by libtool doesn't work for child process:
https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html

Dec 1 2020, 3:09 AM · toolchain

Nov 30 2020

GPF awarded T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)) a Love token.
Nov 30 2020, 11:30 AM · Restricted Project, gnupg, Feature Request
gniibe added projects to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac: MacOS, Info Needed.

IIUC, for the build of Homebrew, it is the issue of in: https://github.com/Homebrew/homebrew-core/commit/e7da1e2157b2e8373c3b39ea6398f51588ea537c

Nov 30 2020, 7:30 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

Please have a look at T5024: libtool problem for some platforms for 'make check' (program built with -no-install won't work without installation), if make check works after the installation of libgcrypt.

Nov 30 2020, 7:11 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.

See T2056: libgcrypt: make check fails "random" test on OS X 10.11 with link error, if test with 'random' fails.

Nov 30 2020, 7:09 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.
Nov 30 2020, 2:51 AM · Restricted Project, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

ARM64 has been only tested on platforms which support ELF.

Nov 30 2020, 2:48 AM · toolchain, MacOS, libgcrypt, Bug Report

Nov 27 2020

gniibe changed the status of T4614: GPG: Cancel on pinpad hangs decryption process for 20 seconds from Open to Testing.
Nov 27 2020, 7:21 AM · backport, Restricted Project, scd, gnupg
gniibe committed rGbb591222c3c5: scd:ccid-driver: Fix pinpad error handling for cancel/timeout. (authored by gniibe).
scd:ccid-driver: Fix pinpad error handling for cancel/timeout.
Nov 27 2020, 7:21 AM
gniibe added a comment to T4614: GPG: Cancel on pinpad hangs decryption process for 20 seconds.

Finally, with the physical device, I figure out what's going on.
The error handling in bulk_in in ccid-driver.c is not good for pinpad input.
It doesn't return an error when it is cancelled or timeout (for the user interaction).
And it calls libusb_clear_hald which causes screwed up situation.

Nov 27 2020, 7:17 AM · backport, Restricted Project, scd, gnupg

Nov 26 2020

gniibe added a comment to T3722: gpg "No name" error.

Or it might be related issue of name server access like in T3168: dirmngr: gpg: keyserver receive failed: No keyserver available.

Nov 26 2020, 7:56 AM · dns
gniibe added a parent task for T3168: dirmngr: gpg: keyserver receive failed: No keyserver available: T3517: dirmngr: retry without SRV due to buggy routers.
Nov 26 2020, 7:51 AM · dns, dirmngr
gniibe added a subtask for T3517: dirmngr: retry without SRV due to buggy routers: T3168: dirmngr: gpg: keyserver receive failed: No keyserver available.
Nov 26 2020, 7:51 AM · Feature Request, dns, dirmngr
gniibe closed T3524: "GnuPG MiniHOWTO" English version page unavailable as Resolved.

As of November 2020, the redirect problem has gone.
And we addressed that as "Legacy GnuPG MiniHOWTO" in rDd51cd2013e66: web: Add warning notes to most HOWTOS..

Nov 26 2020, 7:42 AM · Bad link, gpgweb
gniibe merged task T3722: gpg "No name" error into T3517: dirmngr: retry without SRV due to buggy routers.
Nov 26 2020, 7:31 AM · dns
gniibe merged T3722: gpg "No name" error into T3517: dirmngr: retry without SRV due to buggy routers.
Nov 26 2020, 7:31 AM · Feature Request, dns, dirmngr
gniibe added a comment to T3722: gpg "No name" error.

This must be an issue of SRV record retrieval.
Merging.

Nov 26 2020, 7:31 AM · dns
gniibe merged task T3574: gpg-agent doesn't pick up ssh certificates into T1756: gpg-agent doesn't accept ssh certificates.
Nov 26 2020, 7:20 AM · Bug Report
gniibe merged T3574: gpg-agent doesn't pick up ssh certificates into T1756: gpg-agent doesn't accept ssh certificates.
Nov 26 2020, 7:20 AM · gnupg, Feature Request
gniibe closed T4004: Curve25519 for Zeitcontrol card as Resolved.

Support was added in version 3 card.

Nov 26 2020, 7:17 AM · Feature Request, scd
gniibe merged task T4817: dirmgr keys.openpgp.org:443 Address family not supported by protocol into T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.
Nov 26 2020, 7:15 AM · Bug Report
gniibe merged T4817: dirmgr keys.openpgp.org:443 Address family not supported by protocol into T4977: dirmngr not working with linux kernel parameter ipv6.disable=1.
Nov 26 2020, 7:15 AM · Restricted Project, gnupg (gpg22), dirmngr, Bug Report
gniibe added a comment to T4817: dirmgr keys.openpgp.org:443 Address family not supported by protocol.

Because the original problem of EAFNOSUPPORT has been fixed, I am going to close this bug.

Nov 26 2020, 7:14 AM · Bug Report
gniibe added a comment to T4152: command 'KS_GET' failed: Operation not permitted.

It is likely that EPERM (Operation not permitted) occurs by a system call connect(2) if you have some firewall rule(s) which forbids network access.
The dirmngr use libdns resolver which directly connects name servers.
If this is the case, you can use `--standard-resolver\ to use system's standard DNS resolver instead.

Nov 26 2020, 6:50 AM · Bug Report
gniibe closed T4153: no dirmngr.log created after previous command 'KS_GET' failed: Operation not permitted as Invalid.

The log file specified in .gnupg/dirmngr.conf is created at the start of dirmngr.
dirmngr is invokded by the first call of gpg, and it keeps running and handle next request from second invocation of gpg.
So, nothing is problem.

Nov 26 2020, 6:47 AM · Not A Bug
gniibe added a comment to T5055: APPCRASH with libKF5ConfigWidgets.dll.

On Debian, please see: /usr/share/doc/g++-mingw-w64-i686-win32/README.Debian

Nov 26 2020, 6:15 AM · Bug Report, gpg4win
gniibe added a comment to T5055: APPCRASH with libKF5ConfigWidgets.dll.

IIUC, the error occurred when Kleo is exiting and a destructor (in libKF5ConfigWidgets) is called with null pointer.

Nov 26 2020, 3:57 AM · Bug Report, gpg4win
gniibe merged T4640: Outdated text and links at <http://git.gnupg.org/> into T4963: Update GnuPG versions listed on https://git.gnupg.org/.
Nov 26 2020, 2:31 AM · gpgweb, Bug Report
gniibe merged task T4640: Outdated text and links at <http://git.gnupg.org/> into T4963: Update GnuPG versions listed on https://git.gnupg.org/.
Nov 26 2020, 2:31 AM · gpgweb, Bug Report
gniibe added a comment to T4640: Outdated text and links at <http://git.gnupg.org/>.

Fixed in rDf810f0bc5b13: git.gnupg.org: Update entry page.

Nov 26 2020, 2:31 AM · gpgweb, Bug Report
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

For ctx->exportPublicKeys returning 0 even when a failure, (with fix of gpg) error handling should be done differently.

Nov 26 2020, 2:22 AM · segv, gpgme, Bug Report
gniibe committed rG605ab99912ac: gpg: Report an error for receiving key from agent. (authored by gniibe).
gpg: Report an error for receiving key from agent.
Nov 26 2020, 1:52 AM
gniibe added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

Applied and push the change above in rG920154370834: scd,nks: Fix caching keygrip..

Nov 26 2020, 1:38 AM · backport, gnupg (gpg23), scd
gniibe committed rG920154370834: scd,nks: Fix caching keygrip. (authored by gniibe).
scd,nks: Fix caching keygrip.
Nov 26 2020, 1:38 AM

Nov 25 2020

gniibe triaged T5150: scd: For NetKey cards READKEY with keygrip fails as Normal priority.
Nov 25 2020, 3:48 AM · backport, gnupg (gpg23), scd