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
scdaemon)
3925____2BDD2CC27A2DED__0D__5D38 - raw response to APDU sent via
scdaemon, sniffed via pcscd

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

Thanks,
--
header =
1499e16e19140b122ba0e7340927ca3907dafea926282c6669f9c780351aa86380bcc34136ccb6c4e0ed0909cf8dd5ca54361daa52fb11de90209da4ab7314b4c13484bcab27
footer =
17ed847391b9e8916760bd9162c8a7518c850e8cfc285c61494290725bb98a52dbe44d5eaeb9d8e812cd29a784aa
-- 
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