Interface DHStateHybrid

All Superinterfaces:
Destroyable, DHState

public interface DHStateHybrid extends DHState
Additional API for DH objects that need special handling for hybrid operations.
  • Method Details

    • generateKeyPair

      void generateKeyPair(DHState remote)
      Generates a new random keypair relative to the parameters in another object.
      Parameters:
      remote - The remote party in this communication to obtain parameters.
      Throws:
      IllegalStateException - The other or remote DH object does not have the same type as this object.
    • copyFrom

      void copyFrom(DHState other, DHState remote)
      Copies the key values from another DH object of the same type.
      Parameters:
      other - The other DH object to copy from
      remote - The remote party in this communication to obtain parameters.
      Throws:
      IllegalStateException - The other or remote DH object does not have the same type as this object.
    • specifyPeer

      void specifyPeer(DHState local)
      Specifies the local peer object prior to setting a public key on a remote object.
      Parameters:
      local - The local peer object.