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
public static final class FipsDH.KeyPairGenerator extends FipsAsymmetricKeyPairGenerator
Key pair generator for Diffie-Hellman key pairs.
-
-
Constructor Summary
Constructors Constructor Description KeyPairGenerator(FipsDH.KeyGenParameters keyGenParameters, java.security.SecureRandom random)
Construct a key pair generator for Diffie-Hellman keys,
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricKeyPair<AsymmetricDHPublicKey,AsymmetricDHPrivateKey>
generateKeyPair()
Generate a new Diffie-Hellman key pair.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsAsymmetricKeyPairGenerator
getParameters
-
-
-
-
Constructor Detail
-
KeyPairGenerator
public KeyPairGenerator(FipsDH.KeyGenParameters keyGenParameters, java.security.SecureRandom random)
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 Detail
-
generateKeyPair
public AsymmetricKeyPair<AsymmetricDHPublicKey,AsymmetricDHPrivateKey> 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.
-
-