Page MenuHome GnuPG

scdProject
ActivePublic

Recent Activity

Tue, Apr 23

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

Mon, Apr 22

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

Applied to 2.4 branch.

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

Mon, Apr 15

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.

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

Fri, Apr 12

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.

Fri, Apr 12, 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;
Fri, Apr 12, 9:01 AM · scd, gnupg, Bug Report

Tue, Apr 9

werner triaged T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time as Normal priority.
Tue, Apr 9, 1:42 PM · yubikey, gnupg24, 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 · yubikey, gnupg24, 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 · yubikey, gnupg24, scd, Bug Report
gniibe created T7041: Yubikey (PGP + PIV) --pcsc-shared: PIN requires every time.
Mar 13 2024, 7:59 AM · yubikey, gnupg24, 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, 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, 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, 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, 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