Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Parameters : byte [] buffer and offset

Algorithm School

Moderator: UNKNwYSHSA

afrascoi
Posts: 18
Joined: Mon Jan 25, 2016 1:20 am
Points :265
Contact:

Parameters : byte [] buffer and offset

Post by afrascoi » Wed Oct 12, 2016 5:01 am

Could anybody help me understand the arguments to the functions getModulus(byte [] buffer, short offset) and getExponent(byte [] buffer, short offset) well. What is byte [] buffer and offset?

Pf6KINE
Posts: 18
Joined: Wed Apr 13, 2016 2:03 am
Points :148
Contact:

Re: Parameters : byte [] buffer and offset

Post by Pf6KINE » Thu Oct 13, 2016 4:46 am

buffer is where to output the data, offset is where to start in the buffer.

Code: Select all

byte[] buffer = adpu.getBuffer();
short offset = (short)0;

offset += key.getModulus(buffer, offset);
offset += key.getExponent(buffer, offset);

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 21 guests

JavaCard OS : Disclaimer