This discussion is archived
8 Replies Latest reply: Jul 20, 2012 7:07 PM by safarmer RSS

getModulus(byte [] buffer, short offset): confused by arguments

948184 Newbie
Currently Being Moderated
Hi all!

I do not really understand parameters to the functions getModulus(byte [] buffer, short offset) and getExponent(byte [] buffer, short offset).
Let's say, I generate rsa key pair and extract the public key like this:
rsa_keys.genKeyPair(); // generate RSA key pair
RSAPublicKey rsa_pu_key = (RSAPublicKey) rsa_keys.getPublic(); // extract Public key
What are the byte [] buffer and what is offset? I do not get it! There are no arguments to those functions in standard java!

Thanks in advance


  • Correct Answers - 10 points
  • Helpful Answers - 5 points