Modifier and Type | Class and Description |
---|---|
public static class | |
public static class |
Modifier and Type | Field and Description |
---|---|
private AlgorithmParameterSpec | |
private int | |
private BigInteger | |
private SecureRandom | |
private static final BigInteger | |
private static final BigInteger | |
private static final BigInteger | |
private final RSAUtil. | |
private boolean |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private static KeyPair | createKeyPair(RSAUtil.
|
public KeyPair | generateKeyPair()
Implements abstract java. |
private static BigInteger | |
public void | initialize(int
the keysize. This is an
algorithm-specific metric, such as modulus length, specified in
number of bits. keySize, SecureRandom the source of randomness for this generator. random)Implements abstract java. |
public void | initialize(AlgorithmParameterSpec
the parameter set used to generate the keys. params, SecureRandom the source of randomness for this generator. random)Overrides java. |
private static boolean |
keyParams | back to summary |
---|---|
private AlgorithmParameterSpec keyParams |
keySize | back to summary |
---|---|
private int keySize |
publicExponent | back to summary |
---|---|
private BigInteger publicExponent |
random | back to summary |
---|---|
private SecureRandom random |
SQRT_2048 | back to summary |
---|---|
private static final BigInteger SQRT_2048 |
SQRT_3072 | back to summary |
---|---|
private static final BigInteger SQRT_3072 |
SQRT_4096 | back to summary |
---|---|
private static final BigInteger SQRT_4096 |
type | back to summary |
---|---|
private final RSAUtil. |
useNew | back to summary |
---|---|
private boolean useNew |
RSAKeyPairGenerator | back to summary |
---|---|
pack-priv RSAKeyPairGenerator(RSAUtil. |
createKeyPair | back to summary |
---|---|
private static KeyPair createKeyPair(RSAUtil. |
generateKeyPair | back to summary |
---|---|
public KeyPair generateKeyPair() Implements abstract java. Doc from java. Generates a key pair. Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called.
|
getSqrt | back to summary |
---|---|
private static BigInteger getSqrt(int keySize) |
initialize | back to summary |
---|---|
public void initialize(int keySize, SecureRandom random) Implements abstract java. Doc from java. Initializes the key pair generator for a certain keysize, using the default parameter set.
|
initialize | back to summary |
---|---|
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes the key pair generator using the specified parameter set and user-provided source of randomness. This concrete method has been added to this previously-defined
abstract class. (For backwards compatibility, it cannot be abstract.)
It may be overridden by a provider to initialize the key pair
generator. Such an override
is expected to throw an
|
isRelativePrime | back to summary |
---|---|
private static boolean isRelativePrime(BigInteger e, BigInteger bi) |
Access | Constructor and Description |
---|---|
public |
Legacy | back to summary |
---|---|
public Legacy() |
Access | Constructor and Description |
---|---|
public |
PSS | back to summary |
---|---|
public PSS() |