|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.logi.crypto.Crypto
|
+--org.logi.crypto.protocols.SendHashKeyEx
|
+--org.logi.crypto.protocols.SendHashKeyExClient
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.
SendHashKeyExServer| Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
| Constructor Summary | |
SendHashKeyExClient(Key k)
Create a new SendHashKeyEx object. |
|
| Method Summary | |
byte[] |
message(byte[] received)
Get the next message in the protocol. |
| Methods inherited from class org.logi.crypto.protocols.SendHashKeyEx |
completed, maxMessageSize, sessionKey |
| Methods inherited from class org.logi.crypto.Crypto |
binString, binString, ensureArrayLength, ensureArrayLength, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, prettyPrint, prettyPrint, readBlock, readInt, trimArrayLength, trimArrayLength, trimLeadingZeroes, writeBytes, writeBytes, writeInt |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.logi.crypto.protocols.InterProtocolClient |
completed, maxMessageSize |
| Methods inherited from interface org.logi.crypto.protocols.InterKeyExClient |
sessionKey |
| Constructor Detail |
public SendHashKeyExClient(Key k)
k.| Method Detail |
public byte[] message(byte[] received)
throws CryptoProtocolException
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.
message in interface InterProtocolClientCryptoProtocolException - if a problem arises with the protocol.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||