JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Extended APDUs on JC10M128C
Moderator: horse dream
Extended APDUs on JC10M128C
Hi,
I use the JC10M128C card with JCIDE 2.0.1.70.
I have implemented an applet, which shall support extended APDUs with T=1. In general it works
for transmit and receive, I can see, that the APDU is divided in chunks to transfer data sizes above
of IFSD/IFSC.
But I see a problem during transmit from card (card->reader), if the response data is larger then 256 bytes.
In this case I get an exception during execution of command:
apdu.setOutgoingLength(outlength); // outlength is 257 -> exception
apdu.setOutgoingLength(outlength); // outlength is 256 -> no problem
The exception tells me the reason: BAD_LENGTH.
Is there any known limitation with this card ?
I use the "import javacardx.apdu.ExtendedLength;", and in general it works, but to a size of 256 bytes only.
I use the extended Le and Lc, as specified in ISO7816.
Regards,
Torsten
I use the JC10M128C card with JCIDE 2.0.1.70.
I have implemented an applet, which shall support extended APDUs with T=1. In general it works
for transmit and receive, I can see, that the APDU is divided in chunks to transfer data sizes above
of IFSD/IFSC.
But I see a problem during transmit from card (card->reader), if the response data is larger then 256 bytes.
In this case I get an exception during execution of command:
apdu.setOutgoingLength(outlength); // outlength is 257 -> exception
apdu.setOutgoingLength(outlength); // outlength is 256 -> no problem
The exception tells me the reason: BAD_LENGTH.
Is there any known limitation with this card ?
I use the "import javacardx.apdu.ExtendedLength;", and in general it works, but to a size of 256 bytes only.
I use the extended Le and Lc, as specified in ISO7816.
Regards,
Torsten
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Extended APDUs on JC10M128C
Your applet shall extends ExtendedLength interface.
Please refer to this example: https://javacardos.com/wiki/javacard-ap ... munication
Please refer to this example: https://javacardos.com/wiki/javacard-ap ... munication
sense and simplicity
Re: Extended APDUs on JC10M128C
Hi,
thanks a lot, this hint solved the issue. I forgot to append the "implements ExtendedLength" to the "public class" line.
Regards,
Torsten
thanks a lot, this hint solved the issue. I forgot to append the "implements ExtendedLength" to the "public class" line.
Regards,
Torsten
Who is online
Users browsing this forum: No registered users and 21 guests