All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface is.hi.logir.cryptonite.InterKeyExClient

public interface InterKeyExClient
Objects which implement this interface implement the client portion of an interactive key-exchange protocol.

In this context, the party which initiates the protocol is considered the client. Interactive means that the client may need to recieve information from the server, so the protocol can't be used off-line.

An example of an interactive key-exchange protocol is the Diffie-Hellman protocol where each party must send the value g^a to the other before they can both calculate the key g^{ab}.

Author:
Logi Ragnarsson (logir@hi.is)

Method Index

 o message(byte[])
Get the next message in the protocol.
 o sessionKey()
Returns the key if it has been decided upon, or null otherwise.

Methods

 o sessionKey
 public abstract Key sessionKey()
Returns the key if it has been decided upon, or null otherwise.

 o message
 public abstract byte[] message(byte received[]) throws ProtocolException
Get the next message in the protocol.

If the key has not been decided upon and received is the last message received from the other end, message(received) returns the message to send the other end as the next step in the protocol.

Throws: ProtocolException
if a problem arises with the protocol.

All Packages  Class Hierarchy  This Package  Previous  Next  Index