Skip to content

Instantly share code, notes, and snippets.

@miguelcardo
Created December 12, 2014 08:23
Show Gist options
  • Save miguelcardo/70fbf03bd69b0ef4f712 to your computer and use it in GitHub Desktop.
Save miguelcardo/70fbf03bd69b0ef4f712 to your computer and use it in GitHub Desktop.
Process an incoming APDU
public void process(APDU apdu){
byte buffer[] = apdu.getBuffer();
short length = (short) helloFidesmo.length;
Util.arrayCopyNonAtomic(helloFidesmo, (short)0, buffer, (short)0, (short)length);
apdu.setOutgoingAndSend((short)0, length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment