8 Replies Latest reply: Jul 20, 2012 9:07 PM by sfarmer81 RSS

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

      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