public class

DHBasicKeyPairGenerator

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

Class Overview

a basic Diffie-Hellman key pair generator. This generates keys consistent for use with the basic algorithm for Diffie-Hellman.

Summary

Public Constructors
DHBasicKeyPairGenerator()
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 DHBasicKeyPairGenerator ()

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.