Hi,

Success, OpenPGP write support is here (atl east the first steps)!!!

Quân's patches for OpenPGP write support are merged into the branch
testing on my github repo  https://github.com/marschap/OpenSC/tree/testing
which is based on OpenSC's staging branch.

I also created a pull request (https://github.com/OpenSC/OpenSC/pull/46)
in order to get these changes into OpenSC's staging branch.

Here's a short transcript of a shell session

$ src/tools/opensc-explorer 
OpenSC Explorer version 0.12.3-pre1
Using reader with a card: SCM Microsystems Inc. SCR 335 [CCID Interface] 
(60600adc) 00 00
OpenSC [3F00]> verify chv2 "my password"
Code correct.
OpenSC [3F00]> do_put 0101 "Success! Thanks to hongquan PUT DATA works with 
OpenPGP cards."
Total of 62 bytes written.
OpenSC [3F00]> cat 0101
00000000: 53 75 63 63 65 73 73 21 20 54 68 61 6E 6B 73 20 Success! Thanks 
00000010: 74 6F 20 68 6F 6E 67 71 75 61 6E 20 50 55 54 20 to hongquan PUT 
00000020: 44 41 54 41 20 77 6F 72 6B 73 20 77 69 74 68 20 DATA works with 
00000030: 4F 70 65 6E 50 47 50 20 63 61 72 64 73 2E       OpenPGP cards.
OpenSC [3F00]> quit

$ src/tools/openpgp-tool 
Using reader with a card: SCM Microsystems Inc. SCR 335 [CCID Interface] 
(60600adc) 00 00
Account:   marschap
URL:       
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x3CA6ACA2B35BD0B4
Name:      Marschall Peter
Language:  de
Gender:    male
DO 0101:   Success! Thanks to hongquan PUT DATA works with OpenPGP cards.

$ gpg --card-status
Application ID ...: D276000124010200000500000ADA0000
Version ..........: 2.0
Manufacturer .....: ZeitControl
Serial number ....: 00000ADA
Name of cardholder: Peter Marschall
Language prefs ...: de
Sex ..............: male
URL of public key : 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x3CA6ACA2B35BD0B4
Login data .......: marschap
Private DO 1 .....: Success! Thanks to hongquan PUT DATA works with OpenPGP 
cards.
Private DO 2 .....: [not set]
Signature PIN ....: forced
Key attributes ...: 2048R 2048R 2048R
Max. PIN lengths .: 32 32 32
PIN retry counter : 3 3 3
Signature counter : 25
Signature key ....: E163 6F1F 2C91 2EE7 E8C7  E745 4A78 EC36 871E F692
      created ....: 2011-04-14 17:25:41
Encryption key....: [none]
Authentication key: BC74 C977 4F22 55A0 CBF4  D492 CC27 5984 6459 4049
      created ....: 2011-04-14 17:25:14

Best
Peter



-- 
Peter Marschall
pe...@adpm.de
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to