org.bouncycastle.crypto.agreement

Class DHBasicAgreement

Implemented Interfaces:
BasicAgreement

public class DHBasicAgreement
extends java.lang.Object
implements BasicAgreement

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.

Method Summary

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)

Method Details

calculateAgreement

public BigInteger calculateAgreement(CipherParameters pubKey)
given a short term public key from a given party calculate the next message in the agreement sequence.
Specified by:
calculateAgreement in interface BasicAgreement

init

public void init(CipherParameters param)
Specified by:
init in interface BasicAgreement