[PATCH] g10: Support multiple cards
NIIBE Yutaka
gniibe at fsij.org
Tue Mar 14 02:33:10 CET 2017
Hello,
Attached is a patch to improve --card-status when there are multiple
cards (with internal CCID driver).
The change is a bit larger than I expected, because we need to change
how "LEARN" command works. Yet, I don't know the impact for other
cases (like Scute and Poldi). So, I won't push this change soon, but
try more testing.
Here is an example output.
==========================
$ ./g10/gpg --card-status --verbose
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
Reader ...........: 234B:0000:FSIJ-1.2.2-87022128:0
Application ID ...: D276000124010200F517000000010000
Version ..........: 2.0
Manufacturer .....: FSIJ
Serial number ....: 00000001
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa2048 rsa2048 rsa2048
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 46
Signature key ....: 1241 24BD 3B48 62AF 7A0A 42F1 00B4 5EBD 4CA7 BABE
created ....: 2010-10-15 06:46:33
Encryption key....: 42E1 E805 4E6F 1F30 26F2 DC79 79A7 9093 0842 39CF
created ....: 2010-10-15 06:46:33
Authentication key: B4D9 7142 C42D 6802 F5F7 4E70 9C33 B6BA 5BB0 65DC
created ....: 2010-10-22 06:06:36
General key info..: pub rsa2048/00B45EBD4CA7BABE 2010-10-15 NIIBE Yutaka <gniibe at fsij.org>
sec> rsa2048/00B45EBD4CA7BABE created: 2010-10-15 expires: never
card-no: F517 00000001
ssb# secp256k1/824E72CE975B9053 created: 2014-01-16 expires: never
ssb> rsa2048/79A79093084239CF created: 2010-10-15 expires: never
card-no: F517 00000001
ssb> rsa2048/9C33B6BA5BB065DC created: 2010-10-22 expires: never
card-no: F517 00000001
Reader ...........: 234B:0000:FSIJ-1.2.2-87193059:0
Application ID ...: D276000124010200FFFE871930590000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87193059
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: ed25519 cv25519 ed25519
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 51
Signature key ....: 249C B377 1750 745D 5CDD 323C E267 B052 364F 028D
created ....: 2015-08-12 07:10:48
Encryption key....: E228 AB42 0F73 3B1D 712D E50C 850A F040 D619 F240
created ....: 2015-08-12 07:10:48
Authentication key: E63F 31E6 F203 20B5 D796 D266 5F91 0521 FAA8 05B1
created ....: 2015-08-12 07:16:14
General key info..: pub ed25519/E267B052364F028D 2015-08-12 NIIBE Yutaka <gniibe at debian.org>
sec> ed25519/E267B052364F028D created: 2015-08-12 expires: never
card-no: FFFE 87193059
ssb> ed25519/5F910521FAA805B1 created: 2015-08-12 expires: never
card-no: FFFE 87193059
ssb> cv25519/850AF040D619F240 created: 2015-08-12 expires: never
card-no: FFFE 87193059
$
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: card-status-change-20170313.diff
Type: text/x-diff
Size: 12324 bytes
Desc: g10 patch for multiple cards
URL: </pipermail/attachments/20170314/21c90cfd/attachment.diff>
More information about the Gnupg-devel
mailing list