But when I tried to decrypt the data, the error exception "60 66" is thrown.
My code
Code: Select all
try{
scChannel=GPSystem.getSecureChannel();
LC= apdu.setIncomingAndReceive();
numBytes=scChannel.unwrap(buffer,(short)ISO7816.OFFSET_CDATA,(short)LC);
apdu.setOutgoingAndSend((short)ISO7816.OFFSET_CDATA,(short)LC);
}
catch(Exception e)
{
ISOException.throwIt((short0x6066);
}
Can anybody help me to find out where I made mistake? It's hard for me to solve this problem. Thanks so much.