is.logi.crypto.protocols
Class SendHashKeyExServer

java.lang.Object
  |
  +--is.logi.crypto.Crypto
        |
        +--is.logi.crypto.protocols.SendHashKeyEx
              |
              +--is.logi.crypto.protocols.SendHashKeyExServer

public class SendHashKeyExServer
extends SendHashKeyEx
implements NoninterKeyExServer

This class implements the server portion of the key-exchange protocol whereby the client sends the server the hash of the key that should be used for decryption. The server is assumed to have this key in its default KeySource.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
SendHashKeyExClient

Fields inherited from class is.logi.crypto.Crypto
BIT, cdsPath, keySource, NIBBLE, primeCertainty, random
 
Constructor Summary
SendHashKeyExServer()
          Create a new SendHashKeyExServer.
 
Method Summary
 byte[] message(byte[] received)
          Get the next message in the protocol.
 
Methods inherited from class is.logi.crypto.protocols.SendHashKeyEx
completed, sessionKey
 
Methods inherited from class is.logi.crypto.Crypto
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readInt, writeBytes, writeBytes, writeInt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendHashKeyExServer

public SendHashKeyExServer()
Create a new SendHashKeyExServer.
Method Detail

message

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

received is the last message received form the client and has not yet been sent to the client.

The returned value is the next message to send to the client or null if no more messages need to be sent and the protocol is terminated.

Throws:
ProtocolException - if a problem arises with the protocol.


Copyright 1997-1999 Logi Ragnarsson