Skip to Main Content

Java Card APDU Format Verification?

Archie YangMar 21 2017 — edited Apr 28 2017

Hi! I have a problem about APDU format in Java Card Applet.

Does Java Card Runtime verify APDU format before pass it to Applet.process method?

I do not find the informations about this in JCRE Specification.

For example:

When APDU =  00 01 02 03 FF 00 01

          CLA = 00

          INS  = 01

          P1 = 02

          P2 = 03

          LC = FF

          Data = 00, 01

This case, data length is not matched to LC, some card does pass it to Applet.process method, some card does not, just return SW 6700(Wrong Length) to reader.

Message was edited by: Archie Yang Correct, P3 => P2

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on May 26 2017
Added on Mar 21 2017
3 comments
1,187 views