Created
December 12, 2014 08:23
-
-
Save miguelcardo/70fbf03bd69b0ef4f712 to your computer and use it in GitHub Desktop.
Process an incoming APDU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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