ECVKOAgreement (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.agreement

## Class ECVKOAgreement

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

-     public class ECVKOAgreement
      extends java.lang.Object

  GOST VKO key agreement class - RFC 7836 Section 4.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ECVKOAgreement(Digest digest)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `calculateAgreement(CipherParameters pubKey)`
    `int` | `getAgreementSize()`
    `int` | `getFieldSize()` Deprecated. Will be removed
    `void` | `init(CipherParameters key)`

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

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

- - ### Constructor Detail

    - #### ECVKOAgreement

          public ECVKOAgreement(Digest digest)

  - ### Method Detail

    - #### init

          public void init(CipherParameters key)

    - #### getAgreementSize

          public int getAgreementSize()

    - #### getFieldSize

          public int getFieldSize()

      Deprecated. Will be removed

    - #### calculateAgreement

          public byte[] calculateAgreement(CipherParameters pubKey)