java.security.KeyPairGenerator which uses BoringSSL to perform all
the operations.
| Modifier and Type | Field and Description |
|---|---|
| private int | modulusBits
Default RSA key size 2048 bits. |
| private byte[] | publicExponent
Default modulus size is 0x10001 (65537) |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KeyPair | generateKeyPair()
Implements abstract java. |
| 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. |
| modulusBits | back to summary |
|---|---|
| private int modulusBits Default RSA key size 2048 bits. | |
| publicExponent | back to summary |
|---|---|
| private byte[] publicExponent Default modulus size is 0x10001 (65537) | |
| OpenSSLRSAKeyPairGenerator | back to summary |
|---|---|
| public OpenSSLRSAKeyPairGenerator() | |
| 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. | |
| 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
| |