de.mud.ssh
Class SshPacket1
public class SshPacket1
extends de.mud.ssh.SshPacket
$Id: SshPacket1.java 499 2005-09-29 08:24:54Z leo $
byte[] | addPayload(byte[] buff)
|
byte[] | getMpInt() - Return the mp-int at the position offset in the data
First 2 bytes are the number of bits in the integer, msb first
(for example, the value 0x00012345 would have 17 bits).
|
void | putMpInt(BigInteger bi)
|
addPayload , getByte , getBytes , getData , getInt16 , getInt32 , getString , getType , isFinished , putByte , putBytes , putData , putInt16 , putInt32 , putMpInt , putString , setType |
SshPacket1
public SshPacket1(byte newType)
SshPacket1
public SshPacket1(SshCrypto _crypto)
addPayload
public byte[] addPayload(byte[] buff)
- addPayload in interface de.mud.ssh.SshPacket
getMpInt
public byte[] getMpInt()
Return the mp-int at the position offset in the data
First 2 bytes are the number of bits in the integer, msb first
(for example, the value 0x00012345 would have 17 bits). The
value zero has zero bits. It is permissible that the number of
bits be larger than the real number of bits.
The number of bits is followed by (bits + 7) / 8 bytes of binary
data, msb first, giving the value of the integer.
putMpInt
public void putMpInt(BigInteger bi)
- putMpInt in interface de.mud.ssh.SshPacket