Package org.bouncycastle.crypto.fips
Class FipsEC.KeyPairGenerator
java.lang.Object
org.bouncycastle.crypto.fips.FipsAsymmetricKeyPairGenerator<FipsEC.KeyGenParameters,AsymmetricECPublicKey,AsymmetricECPrivateKey>
org.bouncycastle.crypto.fips.FipsEC.KeyPairGenerator
- All Implemented Interfaces:
AsymmetricKeyPairGenerator
- Enclosing class:
- FipsEC
public static final class FipsEC.KeyPairGenerator
extends FipsAsymmetricKeyPairGenerator<FipsEC.KeyGenParameters,AsymmetricECPublicKey,AsymmetricECPrivateKey>
EC key pair generator class.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPairGenerator
(FipsEC.KeyGenParameters keyGenParameters, SecureRandom random) Construct a key pair generator for EC keys, -
Method Summary
Modifier and TypeMethodDescriptionGenerate a new EC key pair.Methods inherited from class org.bouncycastle.crypto.fips.FipsAsymmetricKeyPairGenerator
getParameters
-
Constructor Details
-
KeyPairGenerator
Construct a key pair generator for EC keys,- Parameters:
keyGenParameters
- domain parameters and algorithm for the generated key.random
- a source of randomness for calculating the private value.
-
-
Method Details
-
generateKeyPair
Generate a new EC key pair.- Specified by:
generateKeyPair
in interfaceAsymmetricKeyPairGenerator
- Specified by:
generateKeyPair
in classFipsAsymmetricKeyPairGenerator<FipsEC.KeyGenParameters,
AsymmetricECPublicKey, AsymmetricECPrivateKey> - Returns:
- a new AsymmetricKeyPair containing an EC key pair.
-