Class DHKeyPairGenerator
java.lang.Object
org.gudy.bouncycastle.crypto.generators.DHKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
a Diffie-Helman key pair generator.
This generates keys consistent for use in the MTI/A0 key agreement protocol
as described in "Handbook of Applied Cryptography", Pages 516-519.
-
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
-
DHKeyPairGenerator
public DHKeyPairGenerator()
-
-
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.
-