You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the CLI interface by supplying .apdu files; my command APDU is merely an empty APDU with a custom CLA and INS (that trigger the right Javacard function): 0x80 0xb4 0x0 0x0 0x0 0x0. The behaviour does not change when I alter the value of the Le field.
The Javacard code I'm executing is the following simple proof of concept (where tmp is a sufficiently large array and randomData is a RandomData instance):
When I set numBytes to 255 and output an APDU that contains 255 bytes of data, everything works fine, but as soon as I try to output 256 bytes, the response APDU appears to be broken. I then get the response CLA: 80, INS: b4, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 00, SW2: 03
On my actual physical Javacard, it works as expected.
Is this a known limitation of jcardsim? I looked through the source code, but could not find anything that seems to imply this behaviour.
The text was updated successfully, but these errors were encountered:
When I change my command to 0x80 0xb4 0x0 0x0 0x0; (i.e. omitting the Lc field to indicate an empty data field), I'm not getting back any response at all, i.e. my cfg file looks as follows:
Alternatively, when I do set the Lc field to 0x01 and supply a byte of data (i.e. 0x80 0xb4 0x0 0x0 0x01 0x0 0x0;), I'm back in the situation I described in the original post, where responding with 256 bytes results in CLA: 80, INS: b4, P1: 00, P2: 00, Lc: 01, 00, Le: 00, SW1: 00, SW2: 03
I'm using the CLI interface by supplying .apdu files; my command APDU is merely an empty APDU with a custom
CLA
andINS
(that trigger the right Javacard function):0x80 0xb4 0x0 0x0 0x0 0x0
. The behaviour does not change when I alter the value of theLe
field.The Javacard code I'm executing is the following simple proof of concept (where
tmp
is a sufficiently large array andrandomData
is aRandomData
instance):When I set
numBytes
to255
and output an APDU that contains 255 bytes of data, everything works fine, but as soon as I try to output 256 bytes, the response APDU appears to be broken. I then get the responseCLA: 80, INS: b4, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 00, SW2: 03
On my actual physical Javacard, it works as expected.
Is this a known limitation of jcardsim? I looked through the source code, but could not find anything that seems to imply this behaviour.
The text was updated successfully, but these errors were encountered: