My test applet generate response of zero bytes of length based in Le field in APDU command. When I require up to 256 bytes, responses are OK.
Problem occurs when I expect e.g. 257B (Le = 0x000101), in this case I've got following error: send_APDU() returns 0x80100008 (The data buffer to receive returned data is too small for the returned data.
Here is my script:
select -AID 4269426F4170706C6574
send_apdu_nostop -sc 0 -APDU 80070000000101
I note that when I run it via JCShell everything works fine.
Can somebody help me to solve my problem? Any ideas?
This is most likely a problem with GPShell. It has been around for a while and I haven't noticed much active development so it may not have added support for extended length apdu's. You could always send the commands with Java using javax.smartcardio.*.