JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

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 8 guests

JavaCard OS : Disclaimer