Class FipsAgreement<T extends Parameters>

java.lang.Object
org.bouncycastle.crypto.fips.FipsAgreement<T>
Type Parameters:
T - the parameters type associated with the final implementation of this key agreement.
All Implemented Interfaces:
Agreement<T>

public abstract class FipsAgreement<T extends Parameters> extends Object implements Agreement<T>
Base class for the FIPS approved mode Agreement implementations.
  • Method Details

    • getParameters

      public abstract T getParameters()
      Description copied from interface: Agreement
      Return the parameters being used by this agreement.
      Specified by:
      getParameters in interface Agreement<T extends Parameters>
      Returns:
      the key agreement parameters.
    • calculate

      public abstract byte[] calculate(AsymmetricPublicKey key)
      Description copied from interface: Agreement
      Calculate the agreement using the passed in public key.
      Specified by:
      calculate in interface Agreement<T extends Parameters>
      Parameters:
      key - the public key of the other party.
      Returns:
      the agreement value.