org.bouncycastle.crypto.agreement

## Class XDHUnifiedAgreement

- java.lang.Object
- - org.bouncycastle.crypto.agreement.XDHUnifiedAgreement

- All Implemented Interfaces:
    RawAgreement

      public class XDHUnifiedAgreement
      extends java.lang.Object
      implements RawAgreement

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XDHUnifiedAgreement(RawAgreement xAgreement)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `calculateAgreement(CipherParameters publicKey, byte[] buf, int off)`
    `int` | `getAgreementSize()`
    `void` | `init(CipherParameters key)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XDHUnifiedAgreement

          public XDHUnifiedAgreement(RawAgreement xAgreement)

  - ### Method Detail

    - #### init

          public void init(CipherParameters key)

      Specified by:
        `init` in interface `RawAgreement`

    - #### getAgreementSize

          public int getAgreementSize()

      Specified by:
        `getAgreementSize` in interface `RawAgreement`

    - #### calculateAgreement

          public void calculateAgreement(CipherParameters publicKey,
                                         byte[] buf,
                                         int off)

      Specified by:
        `calculateAgreement` in interface `RawAgreement`