Class RSAKeyPairGenerator

    • Constructor Detail

      • RSAKeyPairGenerator

        public RSAKeyPairGenerator()
    • Method Detail

      • chooseRandomPrime

        protected java.math.BigInteger chooseRandomPrime​(int bitlength,
                                                         java.math.BigInteger e,
                                                         java.math.BigInteger sqrdBound)
        Choose a random prime value for use with RSA
        Parameters:
        bitlength - the bit-length of the returned prime
        e - the RSA public exponent
        Returns:
        A prime p, with (p-1) relatively prime to e
      • isProbablePrime

        protected boolean isProbablePrime​(java.math.BigInteger x)