Problem in coding output data
Posted: Sat Apr 08, 2017 5:54 am
What do you think about this codes?
Why we get plain data as output ?
output: 11 22 33 44 55 66 77 88

Why we get plain data as output ?
Code: Select all
if(secureChannel.getSecurityLevel() != (byte)0x83)
ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
byte[] data= new byte[] {(byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44, (byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88};
Util.arrayCopyNonAtomic(data, (short)0, apdu.getBuffer(), (short)0, (short)data.length);
short length = secureChannel.wrap(apdu.getBuffer(), (short)0, (short)data.length);
apdu.setOutgoingAndSend((short)0, length);
output: 11 22 33 44 55 66 77 88
