Package org.bouncycastle.crypto.fips
Class FipsDH.KeyPairGenerator
java.lang.Object
org.bouncycastle.crypto.fips.FipsAsymmetricKeyPairGenerator
org.bouncycastle.crypto.fips.FipsDH.KeyPairGenerator
- All Implemented Interfaces:
AsymmetricKeyPairGenerator
- Enclosing class:
- FipsDH
Key pair generator for Diffie-Hellman key pairs.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPairGenerator
(FipsDH.KeyGenParameters keyGenParameters, SecureRandom random) Construct a key pair generator for Diffie-Hellman keys, -
Method Summary
Modifier and TypeMethodDescriptionGenerate a new Diffie-Hellman key pair.Methods inherited from class org.bouncycastle.crypto.fips.FipsAsymmetricKeyPairGenerator
getParameters
-
Constructor Details
-
KeyPairGenerator
Construct a key pair generator for Diffie-Hellman 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 Diffie-Hellman key pair.- Specified by:
generateKeyPair
in interfaceAsymmetricKeyPairGenerator
- Specified by:
generateKeyPair
in classFipsAsymmetricKeyPairGenerator
- Returns:
- a new AsymmetricKeyPair containing a Diffie-Hellman key pair.
-