- All Superinterfaces:
Destroyable,DHState
Additional API for DH objects that need special handling for
hybrid operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the key values from another DH object of the same type.voidgenerateKeyPair(DHState remote)Generates a new random keypair relative to the parameters in another object.voidspecifyPeer(DHState local)Specifies the local peer object prior to setting a public key on a remote object.Methods inherited from interface com.southernstorm.noise.protocol.Destroyable
destroyMethods inherited from interface com.southernstorm.noise.protocol.DHState
calculate, clearKey, copyFrom, generateKeyPair, getDHName, getPrivateKey, getPrivateKeyLength, getPublicKey, getPublicKeyLength, getSharedKeyLength, hasPrivateKey, hasPublicKey, isNullPublicKey, setPrivateKey, setPublicKey, setToNullPublicKey
-
Method Details
-
generateKeyPair
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
Copies the key values from another DH object of the same type.- Parameters:
other- The other DH object to copy fromremote- 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
Specifies the local peer object prior to setting a public key on a remote object.- Parameters:
local- The local peer object.
-