Page MenuHome GnuPG
Feed Advanced Search

Sep 3 2024

gniibe closed T7121: gnupg 2.2.43: scdaemon fails with KDF as Resolved.
Sep 3 2024, 3:35 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Aug 28 2024

werner added a project to T6690: Allow scdaemon to run as a system service: AppImage.

So we need a way to launch scdaemon via userv and make sure that the scdaemon user gives proper permissions to its socket file. gpg-agent also nees to check for a proper version of scdaemon and gpgme needs to be aware of this as well (if it want to directly connect to scdaemon).

Aug 28 2024, 4:41 PM · AppImage, Feature Request, scd, gnupg26

Jul 5 2024

gniibe claimed T7058: KDF-DO is not properly implemented.
Jul 5 2024, 2:40 AM · scd, gnupg, Bug Report

Jul 1 2024

gniibe changed the status of T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close from Open to Testing.
Jul 1 2024, 4:25 AM · gpgagent, scd, gnupg24, Bug Report
gniibe changed the status of T7160: scd: pipe server shutdown, a subtask of T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close, from Open to Testing.
Jul 1 2024, 4:25 AM · gpgagent, scd, gnupg24, Bug Report
gniibe changed the status of T7160: scd: pipe server shutdown from Open to Testing.

Fixed in rG01fa318be0f8: scd: Fix how scdaemon pipe server finishes.

Jul 1 2024, 4:25 AM · scd, gpgagent, Bug Report

Jun 27 2024

gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Asking a change of gpgme would need more time... So, I decided to change gpg-agent side.
gpg-agent part was done in: rGb3f1f2cd192b: agent: Handle SCD DEVINFO --watch command in a special way.

Jun 27 2024, 8:38 AM · gpgagent, scd, gnupg24, Bug Report

Jun 25 2024

gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

scdaemon part was done in: rG36d8cffc6cd2: scd: Finish DEVINFO --watch command on input close.

Jun 25 2024, 10:56 AM · gpgagent, scd, gnupg24, Bug Report

Jun 24 2024

werner added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Maybe we can support this directly in gpgme's assuan API.

Jun 24 2024, 9:05 AM · gpgagent, scd, gnupg24, Bug Report
gniibe added a comment to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close.

Did some experiment and I concluded (for now) that new command for gpg-agent would not be needed.
Instead, it might be better doing following in GPGME.

Jun 24 2024, 4:24 AM · gpgagent, scd, gnupg24, Bug Report

Jun 21 2024

werner raised the priority of T7121: gnupg 2.2.43: scdaemon fails with KDF from Normal to High.
Jun 21 2024, 1:21 PM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Jun 17 2024

gniibe added projects to T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close: scd, gpgagent.
Jun 17 2024, 4:49 AM · gpgagent, scd, gnupg24, Bug Report
gniibe triaged T7160: scd: pipe server shutdown as Normal priority.
Jun 17 2024, 4:48 AM · scd, gpgagent, Bug Report

May 31 2024

whites11 added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Thanks for your answer, @werner

May 31 2024, 2:33 PM · gnupg26, yubikey, scd, Bug Report
werner added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Do not use the pcscd but the integrated CCID driver. This is actually the default form Unix. Or are you on Windows?

May 31 2024, 12:36 PM · gnupg26, yubikey, scd, Bug Report
whites11 added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

Hello all. I think I am affected by this problem (I get asked for the yubikey PIV pin every time I make a git commit).
Is there a known workaround?

May 31 2024, 10:45 AM · gnupg26, yubikey, scd, Bug Report

May 17 2024

gniibe updated the task description for T7121: gnupg 2.2.43: scdaemon fails with KDF.
May 17 2024, 7:02 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

May 16 2024

gniibe claimed T7121: gnupg 2.2.43: scdaemon fails with KDF.

Pushed the fix: rGbb57c808b2ad: scd:openpgp: Fix PIN pin2hash_if_kdf.

May 16 2024, 3:32 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report
gniibe created T7121: gnupg 2.2.43: scdaemon fails with KDF.
May 16 2024, 3:28 AM · gnupg22 (gnupg-2.2.44), yubikey, scd, Bug Report

Apr 23 2024

werner triaged T7099: Disable the import of certain card objects as Normal priority.
Apr 23 2024, 2:54 PM · gnupg26, scd, Restricted Project, Feature Request

Apr 22 2024

gniibe changed the status of T7058: KDF-DO is not properly implemented from Open to Testing.

Applied to 2.4 branch.

Apr 22 2024, 8:07 AM · scd, gnupg, Bug Report

Apr 15 2024

gniibe added a comment to T7058: KDF-DO is not properly implemented.

@mwalle Thank you for your testing.
Applied to master.
After testing, I'll also apply to 2.4 branch.

Apr 15 2024, 4:14 AM · scd, gnupg, Bug Report

Apr 12 2024

mwalle added a comment to T7058: KDF-DO is not properly implemented.

FWIW, I've tested this patch and it works fine with both KDF as a constructed tag and as a primitive tag.

Apr 12 2024, 2:30 PM · scd, gnupg, Bug Report
gniibe added a comment to T7058: KDF-DO is not properly implemented.

I'm considering applying the following patch. With this change, scdaemon will works well with a card implementation which consider F9 (wrongly) as primitive data object, as well as correct card implementation.

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 26ac91ea2..09223ce33 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -410,6 +410,10 @@ get_cached_data (app_t app, int tag,
   size_t len;
   struct cache_s *c;
   int exmode;
+  int do_constructed = 0;
+
+  if ((tag < 0x0100 && (tag & 0x20)) || (tag >= 0x0100 && (tag & 0x2000)))
+    do_constructed = 1;
Apr 12 2024, 9:01 AM · scd, gnupg, Bug Report

Apr 9 2024

werner triaged T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time as Normal priority.
Apr 9 2024, 1:42 PM · gnupg26, yubikey, scd, Bug Report

Mar 28 2024

werner added a comment to T7058: KDF-DO is not properly implemented.

Please keep also in mind that the OpenPGP card specification has always and is still developed along with GnuPG . Thus if there are any uncertainties in the specification GnuPG's way of handling thing is the way to go. If there is a way to chnage things without risking any breakage we can of course fix that. In all other cases we need to continue wit the current way. For larger changes in the spec we can of course cleanup stuff - Achim is currently reworking on a revision.

Mar 28 2024, 10:05 AM · scd, gnupg, Bug Report
mwalle added a comment to T7058: KDF-DO is not properly implemented.

Please keep in mind, that it is not only about GnuPG and the OpenPGP card, but also between GnuPG and other PGP applications. I'm not really sure what the recent commit is doing, if it only affect the reading or also the writing of the data. But IMHO GnuPG should stick to the standard also if writing the KDF DO data because eventually, it will be used for authentication with the card.

Mar 28 2024, 9:06 AM · scd, gnupg, Bug Report

Mar 27 2024

gniibe added a comment to T7058: KDF-DO is not properly implemented.

Given the situation where GnuPG works well with existing OpenPGP card implementations, what we should do here is, perhaps:

Mar 27 2024, 2:37 AM · scd, gnupg, Bug Report
gniibe added a comment to T7058: KDF-DO is not properly implemented.

There are multiple problems described in your report. Let us handle one by one.

Mar 27 2024, 2:24 AM · scd, gnupg, Bug Report

Mar 26 2024

werner triaged T7058: KDF-DO is not properly implemented as Normal priority.
Mar 26 2024, 10:11 AM · scd, gnupg, Bug Report
werner added projects to T7058: KDF-DO is not properly implemented: gnupg, scd.
Mar 26 2024, 10:11 AM · scd, gnupg, Bug Report

Mar 13 2024

werner added a comment to T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

But only if you can figure out in a transaction or locked sytate whether the card needs a verify. Otherwise we have a race between changing the PIN and verifying a PIN.

Mar 13 2024, 9:25 AM · gnupg26, yubikey, scd, Bug Report
gniibe claimed T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.

This rejection could be relaxed.

Mar 13 2024, 8:00 AM · gnupg26, yubikey, scd, Bug Report
gniibe created T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.
Mar 13 2024, 7:59 AM · gnupg26, yubikey, scd, Bug Report

Mar 7 2024

werner moved T6425: improve pinentry behavior and texts in smart card context from WiP to gnupg-2.4.5 on the gnupg24 board.
Mar 7 2024, 3:25 PM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
werner moved T7000: Take derive usage into account for pkcs#15 cards. from WiP to gnupg-2.4.5 on the gnupg24 board.
Mar 7 2024, 3:24 PM · gnupg24 (gnupg-2.4.5), Bug Report, scd

Mar 6 2024

werner added a comment to T6843: after enable kdf-setup impossible change user/admin pin.

See also rG40b85d8e8cecadf35e51e84b30de4fac820d714b for gnupg 2.4.

Mar 6 2024, 12:34 PM · gnupg22 (gnupg-2.2.43), scd, yubikey
werner changed the status of T7000: Take derive usage into account for pkcs#15 cards., a subtask of T7001: Support D-TRUST ECC cards, from Open to Testing.
Mar 6 2024, 11:47 AM · gnupg, scd
werner changed the status of T7000: Take derive usage into account for pkcs#15 cards. from Open to Testing.
Mar 6 2024, 11:47 AM · gnupg24 (gnupg-2.4.5), Bug Report, scd

Mar 4 2024

werner added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

See also: https://gnupg.org/blog/20240125-smartcard-backup-key.html

Mar 4 2024, 3:38 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
ikloecker claimed T6420: Kleopatra: improve layout of and text in smartcard management view.
Mar 4 2024, 10:37 AM · vsd33 (vsd-3.3.0), Feature Request, Restricted Project, kleopatra

Mar 1 2024

gniibe claimed T7016: scdaemon: Sometimes a newly detected card is immediately considered removed.

It looks like hardware problem or card reader problem.
Please test with debug-ccid-driver line in scdaemon.conf to see lower-lever (driver debug) message.

Mar 1 2024, 5:10 AM · scd, Restricted Project, Bug Report

Feb 21 2024

werner reopened T6729: scdaemon 'Operation not supported by device' on macOS unless racing for first (?) read on boot as "Open".

The solution seems to be a newer libccid version. If that is the case we may want to include the fix also in our own ccid driver.

Feb 21 2024, 2:45 PM · Feature Request, Not A Bug, gnupg, scd, MacOS
ncts added a comment to T6729: scdaemon 'Operation not supported by device' on macOS unless racing for first (?) read on boot.

Got this from my card vendor. Sonoma had a buggy CCID driver; compile one yourself and the bug's gone: https://forums.developer.apple.com/forums/thread/732091?answerId=768462022#768462022

Feb 21 2024, 11:05 AM · Feature Request, Not A Bug, gnupg, scd, MacOS

Feb 19 2024

werner added a parent task for T7000: Take derive usage into account for pkcs#15 cards.: T7001: Support D-TRUST ECC cards.
Feb 19 2024, 1:54 PM · gnupg24 (gnupg-2.4.5), Bug Report, scd
werner added a subtask for T7001: Support D-TRUST ECC cards: T7000: Take derive usage into account for pkcs#15 cards..
Feb 19 2024, 1:54 PM · gnupg, scd
werner triaged T7001: Support D-TRUST ECC cards as Normal priority.
Feb 19 2024, 1:54 PM · gnupg, scd
werner moved T7000: Take derive usage into account for pkcs#15 cards. from Backlog to WiP on the gnupg24 board.
Feb 19 2024, 1:51 PM · gnupg24 (gnupg-2.4.5), Bug Report, scd
werner triaged T7000: Take derive usage into account for pkcs#15 cards. as Normal priority.
Feb 19 2024, 1:45 PM · gnupg24 (gnupg-2.4.5), Bug Report, scd

Feb 15 2024

ebo moved T6425: improve pinentry behavior and texts in smart card context from Backlog to WiP on the gnupg24 board.
Feb 15 2024, 8:27 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project

Jan 26 2024

werner moved T6843: after enable kdf-setup impossible change user/admin pin from Backlog to QA on the gnupg22 board.

We need to test the PIN, PUK and reset code stuff in 2.2

Jan 26 2024, 3:14 PM · gnupg22 (gnupg-2.2.43), scd, yubikey
gniibe closed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys as Resolved.

For the particular issue reopened for GnuPG 2.2.41 is fixed in GnuPG 2.2.42.
Please note that we can't fix the cause itself, the hardware problem.

Jan 26 2024, 1:08 AM · backport, yubikey, scd, segv, Bug Report

Jan 25 2024

werner added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

Also fixed in the fortgcoming 2.2.43

Jan 25 2024, 2:05 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner shifted T6944: The default card key generation keeps an unprotected backup of the encryption key on disk from the Restricted Space space to the S1 Public space.
Jan 25 2024, 11:56 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 24 2024

werner closed T6944: The default card key generation keeps an unprotected backup of the encryption key on disk as Resolved.
Jan 24 2024, 2:31 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner moved T6944: The default card key generation keeps an unprotected backup of the encryption key on disk from WiP to gnupg-2.2.43 on the gnupg22 board.
Jan 24 2024, 2:31 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner moved T6944: The default card key generation keeps an unprotected backup of the encryption key on disk from QA to gnupg-2.4.4 on the gnupg24 board.
Jan 24 2024, 2:31 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

Fixed in 2.4.4 and 2.2.43 - see above for affected versions.

Jan 24 2024, 2:31 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner closed T6919: Add support for smartcafe cards as Resolved.
Jan 24 2024, 2:25 PM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd
werner moved T6919: Add support for smartcafe cards from QA to gnupg-2.4.4 on the gnupg24 board.
Jan 24 2024, 2:25 PM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd
werner moved T6919: Add support for smartcafe cards from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Jan 24 2024, 2:25 PM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd
werner added a project to T6919: Add support for smartcafe cards: Restricted Project.

Works for the two sample RSA cards. Ticket may eventually be re-opened if we run into problems with ECC cards.

Jan 24 2024, 2:24 PM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd
werner moved T6944: The default card key generation keeps an unprotected backup of the encryption key on disk from Backlog to WiP on the gnupg22 board.
Jan 24 2024, 11:23 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner added a project to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk: gnupg22.

We need to fix 2.2.42 too. This because we backported the responsible patch.

Jan 24 2024, 11:22 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 22 2024

werner changed the status of T6944: The default card key generation keeps an unprotected backup of the encryption key on disk from Open to Testing.
Jan 22 2024, 4:53 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 19 2024

werner set External Link to https://forum.gnupg.org/t/privater-schlussel-von-smart-card-in-kleopatra-gespeichert/3858 on T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.
Jan 19 2024, 12:38 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 18 2024

ebo renamed T6420: Kleopatra: improve layout of and text in smartcard management view from Kleopatra: improvement of smartcard management view to Kleopatra: improve layout of and text in smartcard management view.
Jan 18 2024, 9:43 AM · vsd33 (vsd-3.3.0), Feature Request, Restricted Project, kleopatra
werner added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

We tested with Kleopatra:

  • Only gpg4win 4.2 is affected (the current version) but 4.1 is not affected.
  • No vsd version is affected.
Jan 18 2024, 8:35 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
werner added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

FWIW, I am already working on this.

Jan 18 2024, 8:31 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report
gniibe added a comment to T6944: The default card key generation keeps an unprotected backup of the encryption key on disk.

Currently, there is no support for gpg-agent to keep private key not on disk, but only on memory of gpg-agent. Given the situation,
I think that it is good to:

Jan 18 2024, 2:17 AM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 17 2024

werner triaged T6944: The default card key generation keeps an unprotected backup of the encryption key on disk as High priority.
Jan 17 2024, 4:07 PM · gnupg22 (gnupg-2.2.43), gnupg24 (gnupg-2.4.4), OpenPGP, scd, Bug Report

Jan 15 2024

ebo added a project to T6420: Kleopatra: improve layout of and text in smartcard management view: vsd33.
Jan 15 2024, 9:40 AM · vsd33 (vsd-3.3.0), Feature Request, Restricted Project, kleopatra

Jan 12 2024

werner edited projects for T6843: after enable kdf-setup impossible change user/admin pin, added: gnupg22; removed backport, gnupg.
Jan 12 2024, 4:26 PM · gnupg22 (gnupg-2.2.43), scd, yubikey

Jan 11 2024

werner added a comment to T5085: Filter APDUs in log output.

The extra option --debug-allow-pin-logging was implemented with commit rGe43bd2a7a78.

Jan 11 2024, 4:05 PM · gnupg, Feature Request, scd

Jan 5 2024

ebo added a project to T6425: improve pinentry behavior and texts in smart card context : gnupg24.
Jan 5 2024, 3:29 PM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
werner moved T6179: gnupg 2.3.7 broke YubiKey support: DBG: Curve with OID not supported: 2b06010401da470f01 from Backlog to done on the gnupg24 board.
Jan 5 2024, 12:05 PM · gnupg24, scd, Bug Report
werner moved T6919: Add support for smartcafe cards from Backlog to QA on the gnupg24 board.
Jan 5 2024, 11:32 AM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd

Jan 4 2024

werner triaged T6919: Add support for smartcafe cards as Normal priority.
Jan 4 2024, 4:26 PM · gnupg24 (gnupg-2.4.4), Restricted Project, Feature Request, scd

Dec 27 2023

gniibe changed the status of T6843: after enable kdf-setup impossible change user/admin pin from Open to Testing.

It would be good to apply this to 2.2, so adding "backport" tag.

Dec 27 2023, 1:25 AM · gnupg22 (gnupg-2.2.43), scd, yubikey

Dec 26 2023

gniibe lowered the priority of T6425: improve pinentry behavior and texts in smart card context from High to Normal.
Dec 26 2023, 7:17 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
gniibe changed the status of T6425: improve pinentry behavior and texts in smart card context from Open to Testing.
Dec 26 2023, 7:17 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
gniibe closed T2440: scdaemon grabs card exclusively; it'd be nice if it didn't as Resolved.

GnuPG 2.2 and 2.4 now have --pcsc-shared option for a user who can control his action in detail.
So, closing this bug report.

Dec 26 2023, 7:00 AM · scd, gnupg, Feature Request

Dec 22 2023

gniibe edited projects for T6843: after enable kdf-setup impossible change user/admin pin, added: gnupg, scd; removed Support, Windows.

Thank you for the bug report. Although it's a corner case, it is a discrepancy in the implementation which results unrecoverable situation of the device.

Dec 22 2023, 3:44 AM · gnupg22 (gnupg-2.2.43), scd, yubikey

Dec 12 2023

werner closed T6871: SmartCard stopped working in 2.4 as Resolved.
Dec 12 2023, 3:31 PM · gnupg, scd, Support, Documentation

Nov 27 2023

gniibe added a comment to T6465: Store the ECDH parameters in the key file.

It's true that for KEYTOCARD command, there is optional argument for ECDH.
My point is that for PKDECRYPT command, it will be needed to add mechanism for getting such a parameter (when we use KEM API in gpg-agent).

Nov 27 2023, 10:23 AM · gnupg26, OpenPGP, scd, Bug Report
werner added a comment to T6465: Store the ECDH parameters in the key file.

We already have the ECDH parameters for OpenPGP in the gpg-agent API. The question is how large the data for PQC will be - likely we need to use an inquire already for this reason.

Nov 27 2023, 9:12 AM · gnupg26, OpenPGP, scd, Bug Report
gniibe added a comment to T6465: Store the ECDH parameters in the key file.

Considering the design of gpg-agent which focuses on private key operations and data, it would be better to enhance the gpg-agent protocol to inquire public key data of any format defined by the client (including ECDH KDF parameters of OpenPGP). I mean, instead of storing data in the key file (originally designed for private key + some additional data), we will enhance the protocol.

Nov 27 2023, 2:18 AM · gnupg26, OpenPGP, scd, Bug Report

Nov 23 2023

werner added a subtask for T6465: Store the ECDH parameters in the key file: T6620: Add a way to extract ECC key parameters from a public key.
Nov 23 2023, 12:04 PM · gnupg26, OpenPGP, scd, Bug Report

Nov 8 2023

gniibe claimed T6425: improve pinentry behavior and texts in smart card context .
Nov 8 2023, 6:54 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
gniibe added a comment to T6425: improve pinentry behavior and texts in smart card context .

Pushed the changes for ...sc_op_failure routines to master/2.4.

Nov 8 2023, 6:00 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
gniibe added a comment to T6425: improve pinentry behavior and texts in smart card context .

We would need to revise tools/card-call-scd.c:status_sc_op_failure and g10/card-util.c:write_sc_op_status to catch GPG_ERR_PIN_BLOCKED and GOG_ERR_NO_RESET_CODE.

Nov 8 2023, 4:00 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
gniibe added a comment to T6425: improve pinentry behavior and texts in smart card context .

I found two places in scdaemon which return GPG_ERR_BAD_PIN. GPG_ERR_PIN_BLOCKED is relevant here.

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 66ec9f4a9..77d428786 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2859,7 +2859,7 @@ build_enter_admin_pin_prompt (app_t app, char **r_prompt, int *r_remaining)
   if (!remaining)
     {
       log_info (_("card is permanently locked!\n"));
-      return gpg_error (GPG_ERR_BAD_PIN);
+      return gpg_error (GPG_ERR_PIN_BLOCKED);
     }
Nov 8 2023, 3:35 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project

Nov 7 2023

gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

Applied a patch from 2.4/master to 2.2 for SEGV when card gives bogus data. rG600e69b46149: scd:openpgp: Fix a segv for cards supporting unknown curves.

Nov 7 2023, 9:51 AM · backport, yubikey, scd, segv, Bug Report

Nov 6 2023

gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

@desultory Thank you for your report.
Please open a new ticket for your problem. If you can, please show the result of https://dev.gnupg.org/T5963#157724

Nov 6 2023, 2:06 AM · backport, yubikey, scd, segv, Bug Report

Nov 5 2023

desultory reopened T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys as "Open".

This is still an issue for me:

Nov 5 2023, 12:38 AM · backport, yubikey, scd, segv, Bug Report

Nov 3 2023

werner added a comment to T6425: improve pinentry behavior and texts in smart card context .

The second retry counter is used by current cards for the Reset Code error counter. It is zero if no reset code has been set. It was used by card specs 1.x for the CHV2 only available there.

Nov 3 2023, 12:00 PM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
ebo added a comment to T6425: improve pinentry behavior and texts in smart card context .

This may be related to the output PIN retry counter : 3 0 3, i.e. the PUK counter is 0. No idea what this means.

Nov 3 2023, 9:29 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
ikloecker added a comment to T6425: improve pinentry behavior and texts in smart card context .

The same is true for trying to unblock the card with the PUK. Again I have to enter 3 PINs in 3 windows before being informed that the entry in the first window was wrong. Additionally, the text in window 1 is borked

Nov 3 2023, 9:25 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
ikloecker added a comment to T6425: improve pinentry behavior and texts in smart card context .

If you try "Change PIN" next, you will be asked for the PIN and 2x for the New PIN in altogether 3 pinentry windows before being informed that the PIN is blocked.

Nov 3 2023, 9:16 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project
ikloecker added a comment to T6425: improve pinentry behavior and texts in smart card context .

After the 3rd entry of the wrong PIN, this is exactly the same.
Here I would wish for not only the popup "wrong PIN" but additionally this popup should declare "PIN blocked".

Nov 3 2023, 9:09 AM · gnupg24 (gnupg-2.4.5), scd, Bug Report, Restricted Project