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
How to know the APDU length that has been sent to the application?
How to know the APDU length that has been sent to the application?
Hi friends here. It's me again.
I wonder how to know the APDU length that has been sent to my application? Thanks.
I wonder how to know the APDU length that has been sent to my application? Thanks.
Re: How to know the APDU length that has been sent to the application?
Use the code below to know the length of data field.
Code: Select all
process(Apdu apdu)
{
// Lc tells us the incoming apdu command length
short bytesLeft = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);
// you may also use APDU class method
short readCount = apdu.setIncomingAndReceive();
}
Re: How to know the APDU length that has been sent to the application?
It's better for you to look through Java card API specification.
Who is online
Users browsing this forum: No registered users and 54 guests