Extra data in APDU response when signing by OpenPGP card

NIIBE Yutaka gniibe at fsij.org
Mon Sep 7 02:05:16 CEST 2015


On 09/05/2015 08:05 PM, Ivan Markin wrote:
> 392532352bdd2cc27a2ded2530445d38 - APDU response from scdaemon
> 3925____2bdd2cc27a2ded__0d__5d38 - raw APDU response via pcscd (w/out
> scdaemon)
> 3925____2BDD2CC27A2DED__0D__5D38 - raw response to APDU sent via
> scdaemon, sniffed via pcscd

It is because of the encoding in gpg-agent/scdaemon.

  (1) 25 32 35 is: % 2 5
  (2) 25 20 44 is: % 0 D

(1) is to escape '%' (ASCII value 0x25).
(2) is to represent CR (ASCII value 0x0d).
-- 



More information about the Gnupg-devel mailing list