Class DHBasicKeyPairGenerator
java.lang.Object
org.gudy.bouncycastle.crypto.generators.DHBasicKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
a basic Diffie-Helman key pair generator.
This generates keys consistent for use with the basic algorithm for
Diffie-Helman.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Field Details
-
param
-
-
Constructor Details
-
DHBasicKeyPairGenerator
public DHBasicKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
-
generateKeyPair
Description copied from interface:AsymmetricCipherKeyPairGenerator
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-