All Packages Class Hierarchy This Package Previous Next Index
Class is.logi.crypto.protocols.SendHashKeyExClient
java.lang.Object
|
+----is.logi.crypto.Crypto
|
+----is.logi.crypto.protocols.SendHashKeyEx
|
+----is.logi.crypto.protocols.SendHashKeyExClient
- public class SendHashKeyExClient
- extends SendHashKeyEx
- implements NoninterKeyExClient
This class implements the client 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:
- SendHashKeyExServer
-
SendHashKeyExClient(Key)
- Create a new SendHashKeyEx object.
-
message(byte[])
- Get the next message in the protocol.
SendHashKeyExClient
public SendHashKeyExClient(Key k)
- Create a new SendHashKeyEx object.
It uses the Key
k
.
message
public byte[] message(byte received[]) throws ProtocolException
- Get the next message in the protocol.
received
is the last message received form the server
and has not yet been sent to the client.
The returned value is the next message to send to the server or null
if no more messages need to be sent and the protocol is terminated.
- Throws: ProtocolException
- if a problem arises with the protocol.
All Packages Class Hierarchy This Package Previous Next Index