Top Description Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DhKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator
Imports
java.math.BigInteger, org.bouncycastle.crypto.internal.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .KeyGenerationParameters, org.bouncycastle.crypto.internal.params.DhKeyGenerationParameters, .DhParameters, .DhPrivateKeyParameters, .DhPublicKeyParameters

a Diffie-Hellman 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

Modifier and TypeField and Description
private DhKeyGenerationParameters

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public AsymmetricCipherKeyPair
generateKeyPair()

Implements org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.generateKeyPair.

return an AsymmetricCipherKeyPair containing the generated keys.
public void
init(KeyGenerationParameters
the parameters the key pair is to be initialised with.
param
)

Implements org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramback to summary
private DhKeyGenerationParameters param

Constructor Detail

DhKeyPairGeneratorback to summary
pack-priv DhKeyPairGenerator()

Method Detail

generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Doc from org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.generateKeyPair.

return an AsymmetricCipherKeyPair containing the generated keys.

Returns:AsymmetricCipherKeyPair

an AsymmetricCipherKeyPair containing the generated keys.

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.init.

Doc from org.bouncycastle.crypto.internal.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.

Parameters
param:KeyGenerationParameters

the parameters the key pair is to be initialised with.