org.logi.crypto.protocols
Class SendHashKeyEx

java.lang.Object
  extended byorg.logi.crypto.Crypto
      extended byorg.logi.crypto.protocols.SendHashKeyEx
Direct Known Subclasses:
SendHashKeyExClient, SendHashKeyExServer

public class SendHashKeyEx
extends Crypto

Ancestor of SendHashKeyEx classes.


Field Summary
protected  boolean keyDecided
           
protected  Key sessionKey
           
 
Fields inherited from class org.logi.crypto.Crypto
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO
 
Constructor Summary
protected SendHashKeyEx(Key k)
          Create a new SendHashKeyEx with the Key k.
 
Method Summary
 boolean completed()
          Returns true iff this end of the protocol i completed.
 int maxMessageSize()
          Returns the maximum expected size of a message for this protocol.
 Key sessionKey()
          Returns the key if it has been decided upon, or null otherwise.
 
Methods inherited from class org.logi.crypto.Crypto
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyDecided

protected boolean keyDecided

sessionKey

protected Key sessionKey
Constructor Detail

SendHashKeyEx

protected SendHashKeyEx(Key k)
Create a new SendHashKeyEx with the Key k.

Method Detail

sessionKey

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


completed

public boolean completed()
Returns true iff this end of the protocol i completed.


maxMessageSize

public int maxMessageSize()
Returns the maximum expected size of a message for this protocol.