public class

DHBasicAgreement

extends Object
implements BasicAgreement
java.lang.Object
   ↳ org.bouncycastle.crypto.agreement.DHBasicAgreement

Class Overview

a Diffie-Hellman key agreement class.

note: This is only the basic algorithm, it doesn't take advantage of long term public keys if they are available. See the DHAgreement class for a "better" implementation.

Summary

Public Constructors
DHBasicAgreement()
Public Methods
BigInteger calculateAgreement(CipherParameters pubKey)
given a short term public key from a given party calculate the next message in the agreement sequence.
void init(CipherParameters param)
initialise the agreement engine.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.BasicAgreement

Public Constructors

public DHBasicAgreement ()

Public Methods

public BigInteger calculateAgreement (CipherParameters pubKey)

given a short term public key from a given party calculate the next message in the agreement sequence.

public void init (CipherParameters param)

initialise the agreement engine.