org.bouncycastle.crypto

Interface BasicAgreement

public interface BasicAgreement

The basic interface that basic Diffie-Hellman implementations conforms to.
Method Summary
BigIntegercalculateAgreement(CipherParameters pubKey)
given a public key from a given party calculate the next message in the agreement sequence.
voidinit(CipherParameters param)
initialise the agreement engine.

Method Detail

calculateAgreement

public BigInteger calculateAgreement(CipherParameters pubKey)
given a public key from a given party calculate the next message in the agreement sequence.

init

public void init(CipherParameters param)
initialise the agreement engine.