KeyPairGenerator for EC keys which uses BoringSSL to perform all the
operations.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| private OpenSSLECGroupContext | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public KeyPair | |
| 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. random)Overrides java. |
| public void | initialize(AlgorithmParameterSpec
the parameter set used to generate the keys. param, SecureRandom the source of randomness. random)Overrides java. |
| ALGORITHM | back to summary |
|---|---|
| private static final String ALGORITHM | |
| DEFAULT_KEY_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_KEY_SIZE | |
| group | back to summary |
|---|---|
| private OpenSSLECGroupContext group | |
| SIZE_TO_CURVE_NAME | back to summary |
|---|---|
| private static final Map<Integer, String> SIZE_TO_CURVE_NAME | |
| OpenSSLECKeyPairGenerator | back to summary |
|---|---|
| public OpenSSLECKeyPairGenerator() | |
| assertCurvesAreValid | back to summary |
|---|---|
| public static void assertCurvesAreValid() For testing. | |
| generateKeyPair | back to summary |
|---|---|
| public KeyPair generateKeyPair() Overrides java. Doc from java. Generates a key pair. If this This will generate a new key pair every time it is called. This method is functionally equivalent to
| |
| initialize | back to summary |
|---|---|
| public void initialize(int keysize, SecureRandom random) Overrides java. Doc from java. Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).
| |
| initialize | back to summary |
|---|---|
| public void initialize(AlgorithmParameterSpec param, SecureRandom random) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes the key pair generator with the given parameter set and source of randomness. This concrete method has been added to this previously-defined
abstract class.
This method calls the KeyPairGeneratorSpi
| |