Extra data in APDU response when signing by OpenPGP card

Ivan Markin twim at riseup.net
Sat Sep 5 13:05:13 CEST 2015

Hello everyone,

I have tried to send APDUs to OpenPGP card via pcscd. It works perfectly.
When I'm trying to send APDUs via 'scd apdu ...' everything is OK,
except digest signing. As far as I can see scdaemon adds extra data into
a signature. Diffs of the signature (header + diff_data + footer):

392532352bdd2cc27a2ded2530445d38 - APDU response from scdaemon
3925____2bdd2cc27a2ded__0d__5d38 - raw APDU response via pcscd (w/out
3925____2BDD2CC27A2DED__0D__5D38 - raw response to APDU sent via
scdaemon, sniffed via pcscd

Is it right? If it is, what's the purpose?

header =
footer =
Ivan Markin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150905/ab30ca75/attachment.sig>

More information about the Gnupg-devel mailing list