Decryption using Smartcard using CCID and PCSCD driver

Werner Koch wk at gnupg.org
Wed Nov 7 19:50:54 CET 2007


On Thu,  1 Nov 2007 08:07, volker at ixolution.de said:

> GPG tells me (recipients have been anonymised by xxxxxxxx,
> except myself):

FWIW, we can see you PIN in the log:

 DBG: send apdu: c=00 i=20 p0=00 p1=82 lc=6 le=-1
 DBG:   APDU_data: 00 20 00 82 06 33 31 31 32 38 32
                                  ^^^^^^^^^^^^^^^^^

the problem is this:

  DBG: send apdu: c=00 i=2A p0=80 p1=86 lc=128 le=256

  00 2A 80 86 80 00
  FE F5 1A 7B B7 DC 6A 19 71 0A 98 D9 18 C3 DD 54 
  DA 95 C1 E0 F7 22 64 27 6C 97 53 4B 1A 11 B9 D0
  43 14 9B D3 DF 00 25 4F 2F AA DC 6D 6F 5D BB 1F
  A1 4C 6D FD 53 EE 6C 75 53 BD 71 FB FA C9 C8 F1
  FD 01 F6 09 73 21 F0 21 D3 D6 7F 1D C3 C7 A9 F2
  E4 32 74 CB 3B 8B D3 9E 1B 68 4B 21 AE 01 AA B6
  D2 16 A6 B7 A3 05 6D 67 79 97 D8 4A 3C 34 AC 82
  67 EC 4A 49 AF 72 6A 56 D3 56 45 B6 6C 07 0B

Thus there is one byte missing.  A quick test with a fresh card shows
this for a correct decryption:

  DBG: send apdu: c=00 i=2A p0=80 p1=86 lc=129 le=256
  
  00 2A 80 86 81 00
  71 86 BC 02 50 1F CC 5D 09 CA 7A 98 FB DC 03 81
  92 FA 4F B5 87 5C A4 B5 02 C1 71 1A A7 46 C7 44
  95 1C 2A 7F 66 AA 8F E5 F7 97 CD 50 C5 CA 8F 25
  13 28 AE F9 61 CF BF AA FE 77 F5 03 B4 F6 49 AD
  65 4B F6 C7 B2 2D D9 77 C8 5F D6 1C E1 43 29 E1
  E1 D5 2C C9 5A 96 CA B6 81 9A 84 C5 CF 22 9B 56
  EA E2 52 1A 69 DB A6 BA 96 67 7D 79 07 D0 EF 6E
  80 CA 14 C7 33 98 B5 E9 90 14 64 1E 29 AB 30 59
  
Can you send me the encrypted message by PM?  I only need the the public
key encrypted packet.  Run gpgsplit on the message and send me the
*.pk_enc files or just the one encrypted to your key (gpg --list-packets
on the pk_enc file shows you the keyid for of that packet)


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-users mailing list