public class

DHKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
java.lang.Object
   ↳ org.bouncycastle.crypto.generators.DHKeyPairGenerator

Class Overview

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.

Summary

Public Constructors
DHKeyPairGenerator()
Public Methods
AsymmetricCipherKeyPair generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
void init(KeyGenerationParameters param)
intialise the key pair generator.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator

Public Constructors

public DHKeyPairGenerator ()

Public Methods

public AsymmetricCipherKeyPair generateKeyPair ()

return an AsymmetricCipherKeyPair containing the generated keys.

Returns
  • an AsymmetricCipherKeyPair containing the generated keys.

public void init (KeyGenerationParameters param)

intialise the key pair generator.

Parameters
param the parameters the key pair is to be initialised with.