Page MenuHome GnuPG

svpcom (Vasily Evseenko)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Mar 27 2017, 4:47 PM (269 w, 2 d)
Availability
Available

Recent Activity

Feb 13 2014

svpcom added a comment to T1613: openpgp v2 card bricks after invalid reset apdu.

Cards are openpgp cards from http://g10code.com/p-card.html
S/N:
V2.0 0005 00001E1B
V2.0 0005 00001FDF

Feb 13 2014, 9:59 AM · Too Old, gnupg, scd, Not A Bug, Bug Report
svpcom reopened T1613: openpgp v2 card bricks after invalid reset apdu as "Open".
Feb 13 2014, 9:53 AM · Too Old, gnupg, scd, Not A Bug, Bug Report
svpcom added a project to T1613: openpgp v2 card bricks after invalid reset apdu: Bug Report.
Feb 13 2014, 9:53 AM · Too Old, gnupg, scd, Not A Bug, Bug Report
svpcom added a comment to T1613: openpgp v2 card bricks after invalid reset apdu.

My two cardreaders (omnikey 3021 and 4321 v2) seems not supported by scdaemon
directly (scdaemon logs ccid I/O errors for both bricked and live cards)

I've tried to send that apdu's to bricked card via gpg-connect-agent (througt
pcsc daemon) and got unknown scd errors.

After that I've tried to reset my second (worked) card:

/hex
scd serialno

S SERIALNO D276000124010200000500001FDF0000 0
OK

scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40

D[0000] 69 83 i.
OK

scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40

D[0000] 69 82 i.
OK

scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40

D[0000] 69 83 i.
OK

scd apdu 00 e6 00 00

D[0000] 90 00 ..
OK

scd reset

OK

/echo Disregard the error returned by the next command

Disregard the error returned by the next command

scd serialno undefined

ERR 100663356 Not supported <SCD>

scd apdu 00 44 00 00

ERR 100663351 Invalid value <SCD>

/echo Card has been reset to factory defaults

Card has been reset to factory defaults

after that it became bricked too :-(

scdaemon via pcscd:

scdaemon[16985]: chan_7 <- serialno
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 00 0C 02 3F 00
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 04 00 06 D2 76 00 01
24 01
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6285 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=7
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 04 0C 07 D2 76 00 00
03 01 02
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=12
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 04 0C 0C A0 00 00 00
63 50 4B 43 53 2D 31 35
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=08 p2=0C lc=2
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 08 0C 02 2F 00
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=01 p2=0C lc=2
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 01 0C 02 50 15
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=9
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 04 0C 09 D2 76 00 00
25 45 50 02 00
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=6
le=-1 em=0
2014-02-13 12:37:47 scdaemon[16985] DBG: PCSC_data: 00 A4 04 0C 06 D2 76 00 00
66 01
2014-02-13 12:37:47 scdaemon[16985] DBG: response: sw=6B00 datalen=0
2014-02-13 12:37:47 scdaemon[16985] no supported card application found: Invalid
value
scdaemon[16985]: chan_7 -> ERR 100663351 Invalid value <SCD>
scdaemon[16985]: chan_7 <- RESTART
scdaemon[16985]: chan_7 -> OK

---------

scdaemon directly:

----------

scdaemon[17272]: chan_7 <- serialno
2014-02-13 12:44:41 scdaemon[17272] reader slot 0: using ccid driver
2014-02-13 12:44:41 scdaemon[17272] slot 0: ATR=3B DA 18 FF 81 B1 FE 75 1F 03 00
31 C5 73 C0 01 40 00 90 00 0C
2014-02-13 12:44:41 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2
le=-1 em=0
2014-02-13 12:44:41 scdaemon[17272] DBG: raw apdu: 00 A4 00 0C 02 3F 00
2014-02-13 12:44:46 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:44:46 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:44:46 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6
le=-1 em=0
2014-02-13 12:44:46 scdaemon[17272] DBG: raw apdu: 00 A4 04 00 06 D2 76 00 01 24 01
2014-02-13 12:44:51 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:44:51 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:44:51 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=7
le=-1 em=0
2014-02-13 12:44:51 scdaemon[17272] DBG: raw apdu: 00 A4 04 0C 07 D2 76 00 00
03 01 02
2014-02-13 12:44:56 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:44:56 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:44:56 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=12
le=-1 em=0
2014-02-13 12:44:56 scdaemon[17272] DBG: raw apdu: 00 A4 04 0C 0C A0 00 00 00
63 50 4B 43 53 2D 31 35
2014-02-13 12:45:01 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:45:01 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:45:01 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=08 p2=0C lc=2
le=-1 em=0
2014-02-13 12:45:01 scdaemon[17272] DBG: raw apdu: 00 A4 08 0C 02 2F 00
2014-02-13 12:45:06 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:45:06 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:45:06 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=01 p2=0C lc=2
le=-1 em=0
2014-02-13 12:45:06 scdaemon[17272] DBG: raw apdu: 00 A4 01 0C 02 50 15
2014-02-13 12:45:11 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:45:11 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:45:11 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=9
le=-1 em=0
2014-02-13 12:45:11 scdaemon[17272] DBG: raw apdu: 00 A4 04 0C 09 D2 76 00 00
25 45 50 02 00
2014-02-13 12:45:16 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:45:16 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:45:16 scdaemon[17272] DBG: send apdu: c=00 i=A4 p1=04 p2=0C lc=6
le=-1 em=0
2014-02-13 12:45:16 scdaemon[17272] DBG: raw apdu: 00 A4 04 0C 06 D2 76 00 00 66 01
2014-02-13 12:45:21 scdaemon[17272] ccid_transceive failed: (0x1000a)
2014-02-13 12:45:21 scdaemon[17272] apdu_send_simple(0) failed: card I/O error
2014-02-13 12:45:21 scdaemon[17272] no supported card application found: Ошибка
ввода/вывода
scdaemon[17272]: chan_7 -> ERR 100696113 Ошибка ввода/вывода <SCD>
scdaemon[17272]: chan_7 <- RESTART
scdaemon[17272]: chan_7 -> OK

Feb 13 2014, 9:53 AM · Too Old, gnupg, scd, Not A Bug, Bug Report

Feb 2 2014

svpcom added a project to T1613: openpgp v2 card bricks after invalid reset apdu: Bug Report.
Feb 2 2014, 9:07 PM · Too Old, gnupg, scd, Not A Bug, Bug Report