| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private int | |
| private AlgorithmParameterSpec | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static void | |
| public KeyPair | generateKeyPair()
Implements abstract java. Generates a key pair. |
| private Optional | |
| private byte[] | |
| public void | initialize(int keySize, SecureRandom random)
Implements abstract java. Initializes the key pair generator for a certain keysize, using the default parameter set. |
| public void | initialize(AlgorithmParameterSpec params, SecureRandom random)
Overrides java. Initializes the key pair generator using the specified parameter set and user-provided source of randomness. |
| KEY_SIZE_MAX | back to summary |
|---|---|
| private static final int KEY_SIZE_MAX | |
| KEY_SIZE_MIN | back to summary |
|---|---|
| private static final int KEY_SIZE_MIN | |
| keySize | back to summary |
|---|---|
| private int keySize | |
| params | back to summary |
|---|---|
| private AlgorithmParameterSpec params | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| ECKeyPairGenerator | back to summary |
|---|---|
| public ECKeyPairGenerator() Constructs a new ECKeyPairGenerator. | |
| checkKeySize | back to summary |
|---|---|
| private void checkKeySize(int keySize) throws InvalidParameterException | |
| ensureCurveIsSupported | back to summary |
|---|---|
| private static void ensureCurveIsSupported(ECParameterSpec ecSpec) throws InvalidAlgorithmParameterException | |
| 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.
| |
| generateKeyPairImpl | back to summary |
|---|---|
| private Optional | |
| generatePrivateScalar | back to summary |
|---|---|
| private byte[] generatePrivateScalar(SecureRandom random, ECOperations ecOps, int seedSize) | |
| 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
| |