8 Replies Latest reply on Jul 21, 2012 2:07 AM by safarmer

    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