Problem in sending extended APDU
Posted: Wed Jul 12, 2017 4:38 pm
Hi
I have a problem in receiving extended length APDU.
I send an APDU with about 700 bytes but in my applet that I run in virtual reader, I receive only 243 bytes.
The buffer length is always 261, and with T0 inBufferLength is 243 and with T1 inBufferLength is 153.
Can I use extended length in JCIDE?
this is my applet code:
I have a problem in receiving extended length APDU.
I send an APDU with about 700 bytes but in my applet that I run in virtual reader, I receive only 243 bytes.
The buffer length is always 261, and with T0 inBufferLength is 243 and with T1 inBufferLength is 153.
Can I use extended length in JCIDE?
this is my applet code:
Code: Select all
package myApplet;
import javacard.framework.*;
import javacard.security.*;
import javacardx.crypto.Cipher;
import javacardx.apdu.ExtendedLength;
public class myApplet extends Applet implements ISO7816, ExtendedLength
{
...
public void process(APDU apdu)
{
if(selectingApplet()){
return;
}
byte[] buf = apdu.getBuffer();
short inBufferLength = apdu.setIncomingAndReceive();
byte p1 = inBuffer[ISO7816.OFFSET_P1];
byte p2 = inBuffer[ISO7816.OFFSET_P2];
}