gnu.crypto.key
public abstract class BaseKeyAgreementParty extends Object implements IKeyAgreementParty
A base abstract class to facilitate implementations of concrete key agreement protocol handlers.
Version: $Revision: 1.3 $
Field Summary | |
---|---|
protected boolean | complete Whether the exchange has concluded or not. |
protected boolean | initialised Whether the instance is initialised or not. |
protected IRandom | irnd The optional IRandom instance to use. |
protected String | name The canonical name of the protocol. |
protected SecureRandom | rnd The optional SecureRandom instance to use. |
protected int | step The current step index of the protocol exchange. |
protected static BigInteger | TWO |
Constructor Summary | |
---|---|
protected | BaseKeyAgreementParty(String name) |
Method Summary | |
---|---|
protected abstract void | engineInit(Map attributes) |
protected abstract OutgoingMessage | engineProcessMessage(IncomingMessage in) |
protected abstract void | engineReset() |
protected abstract byte[] | engineSharedSecret() |
byte[] | getSharedSecret() |
void | init(Map attributes) |
boolean | isComplete() |
String | name() |
protected void | nextRandomBytes(byte[] buffer)
Fills the designated byte array with random data.
|
OutgoingMessage | processMessage(IncomingMessage in) |
void | reset() |
Parameters: buffer the byte array to fill with random data.