byte[] encdata=encryptAES128(data, 0, 16);
// Expansion of array from 16 bytes to 16+8 bytes(for MAC signature to fit)
encdata=Arrays.copyOf(encdata, 24);
signMessage(encdata, 16, encdata, 16);
CommandAPDU apduInc = new CommandAPDU((byte) 0x00,INS_MODIFY_BALANCE,(byte) 0x00, (byte) 0x00,encdata,16+8);
ResponseAPDU res = ch.transmit(apduInc);
if (res.getSW() != 0x9000){
if (res.getSW() == 0x6984){
Utilities.writeToLogs(home,"[E] Requested topup amount surpasses card limit. Try it with less! MAX 250.00€ "+cID);
System.out.println("[!] Requested topup amount surpasses card limit. Try it with less! MAX 250.00€");
throw new CardException("Requested topup amount exceeds card limit");
}
else{