bArray in JCRE
bArray in JCRE
There are two global array in JCRE implementation. They are bArray for Install method and APDU buffer.
what are their sizes ? Is it possible to store their references in class by the below code?
byte [] reference = bArray
what are their sizes ? Is it possible to store their references in class by the below code?
byte [] reference = bArray
Last edited by dabluwt on Fri Nov 11, 2016 5:47 am, edited 1 time in total.
Re: bArray in JCRE
The bArray buffer for install method is the APDU buffer from the call to INSTALL. Usually it's 261 bytes.
Re: bArray in JCRE
The size depends on the card. And you can't store them in a reference due to the JCRE applet firewall.
-
- Posts: 55
- Joined: Thu Sep 22, 2016 5:05 am
- Points :784
- Contact:
Re: bArray in JCRE
You can use short i;
i = (short)(bArray.length); in the install command.
byte[] buf = apdu.getBuffer();
short i = (short)(buf.length); in the process(APDU apdu).
i = (short)(bArray.length); in the install command.
byte[] buf = apdu.getBuffer();
short i = (short)(buf.length); in the process(APDU apdu).
Who is online
Users browsing this forum: Baidu [Spider], Google [Bot] and 33 guests