Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto
Interface BasicAgreement

All Known Subinterfaces:
  StagedAgreement

All Known Implementing Classes:
  DHBasicAgreement, ECDHBasicAgreement, ECDHCBasicAgreement, ECDHCStagedAgreement, ECMQVBasicAgreement, MQVBasicAgreement, XDHBasicAgreement

public interface BasicAgreement

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

Method Summary
`java.math.BigInteger` | `calculateAgreement(CipherParameters pubKey)` given a public key from a given party calculate the next message in the agreement sequence.
`int` | `getFieldSize()` return the field size for the agreement algorithm in bytes.
`void` | `init(CipherParameters param)` initialise the agreement engine.

Method Detail

### init

    public void init(CipherParameters param)

  initialise the agreement engine.

### getFieldSize

    public int getFieldSize()

  return the field size for the agreement algorithm in bytes.

### calculateAgreement

    public java.math.BigInteger calculateAgreement(CipherParameters pubKey)

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD