|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj_waste.network.Packet
j_waste.network.KeyInfo
This class represents the InitialPacket2 used during authentication.
| Field Summary |
| Fields inherited from class j_waste.network.Packet |
packet |
| Constructor Summary | |
KeyInfo(byte[] p)
Constructs a new KeyInfo packet by parsing byte array p. |
|
KeyInfo(byte[] sKey,
byte[] sIV,
byte[] sRand)
Constructs a new Keyinfo packet. |
|
| Method Summary | |
void |
finalizePacket()
Finalizes this packet. |
byte[] |
getSIV()
Returns the sIV of this packet. |
byte[] |
getSKey()
Returns the sKey of this packet. |
byte[] |
getSRand()
Returns the sRand of this packet. |
static void |
main(java.lang.String[] argv)
|
byte[] |
toByteArray()
Returns a byte array representation of the packet. |
| Methods inherited from class j_waste.network.Packet |
padCD, reverseBytes, reverseInt, reverseShort, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public KeyInfo(byte[] sKey,
byte[] sIV,
byte[] sRand)
sKey - The blowfish session key. (56 bytes)sRand - The sRand. (16 bytes)sIV - The sIV.public KeyInfo(byte[] p)
p - The byte array to be parsed.| Method Detail |
public byte[] getSKey()
public byte[] getSRand()
public byte[] getSIV()
public byte[] toByteArray()
toByteArray in class Packetpublic void finalizePacket()
finalizePacket in class Packetpublic static void main(java.lang.String[] argv)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||