Top Description Methods
org.bouncycastle.crypto

public Interface BasicAgreement

Known Direct Subinterfaces
org.bouncycastle.crypto.StagedAgreement
Known Direct Implementers
org.bouncycastle.crypto.agreement.DHBasicAgreement, org.bouncycastle.crypto.agreement.ECDHBasicAgreement, org.bouncycastle.crypto.agreement.ECDHCBasicAgreement, org.bouncycastle.crypto.agreement.ECMQVBasicAgreement, org.bouncycastle.crypto.agreement.MQVBasicAgreement, org.bouncycastle.crypto.agreement.XDHBasicAgreement
Imports
java.math.BigInteger

The basic interface that basic Diffie-Hellman implementations conforms to.

Method Summary

Modifier and TypeMethod and Description
public BigInteger
calculateAgreement(CipherParameters pubKey)

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

public int
getFieldSize()

return the field size for the agreement algorithm in bytes.

public void
init(CipherParameters param)

initialise the agreement engine.

Method Detail

calculateAgreementback to summary
public BigInteger calculateAgreement(CipherParameters pubKey)

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

getFieldSizeback to summary
public int getFieldSize()

return the field size for the agreement algorithm in bytes.

initback to summary
public void init(CipherParameters param)

initialise the agreement engine.