Douglas, You got to have a reader capable of "extended APDU". Then no chaining is needed since the commands may exceed 256 bytes.
Lars Douglas E. Engert wrote: > While testing a pkinit with a PrimeCard, It tries to send a 266 byte > APDU and PCSC failed. I suspect that the block should be chained. > Is the logic at iso7816.c:812 iso7816_decipher correct for chaining? > > > stderr: > [opensc-pkcs11] > ../../../src/src/libopensc/reader-pcsc.c:215:pcsc_internal_transmit: > SCardTransmit failed: Insufficient buffer. > [opensc-pkcs11] ../../../src/src/libopensc/reader-pcsc.c:255:pcsc_transmit: > unable to transmit > [opensc-pkcs11] ../../../src/src/libopensc/apdu.c:394:do_single_transmit: > unable to transmit APDU > > > debug: > [opensc-pkcs11] > ../../../src/src/libopensc/card-cardos.c:746:cardos_set_security_env: > returning with: 0 > [opensc-pkcs11] ../../../src/src/libopensc/sec.c:67:sc_set_security_env: > returning with: 0 > [opensc-pkcs11] ../../../src/src/libopensc/sec.c:35:sc_decipher: called > [opensc-pkcs11] ../../../src/src/libopensc/iso7816.c:797:iso7816_decipher: > called > [opensc-pkcs11] ../../../src/src/libopensc/apdu.c:516:sc_transmit_apdu: called > [opensc-pkcs11] ../../../src/src/libopensc/card.c:285:sc_lock: called > [opensc-pkcs11] ../../../src/src/libopensc/apdu.c:184:sc_apdu_log: > Outgoing APDU data [ 266 bytes] ===================================== > 00 2A 80 86 00 01 01 00 00 01 FF FF FF FF FF FF .*.............. > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ > FF FF FF FF 00 30 21 30 09 06 05 2B 0E 03 02 1A .....0!0...+.... > 05 00 04 14 0A 49 25 E1 6F 03 25 A9 90 BB 8E AC .....I%.o.%..... > 66 3F 5C 2E D8 05 32 0C 01 00 f?\...2... > ====================================================================== > [opensc-pkcs11] > ../../../src/src/libopensc/reader-pcsc.c:175:pcsc_internal_transmit: called > [opensc-pkcs11] > ../../../src/src/libopensc/reader-pcsc.c:282:refresh_slot_attributes: called > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel