de.mud.ssh

Class SshPacket1


public class SshPacket1
extends de.mud.ssh.SshPacket

Version:
$Id: SshPacket1.java 499 2005-09-29 08:24:54Z leo $
Author:
Marcus Meissner

Field Summary

Fields inherited from class de.mud.ssh.SshPacket

byteArray, offset

Constructor Summary

SshPacket1(byte newType)
SshPacket1(SshCrypto _crypto)

Method Summary

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)

Methods inherited from class de.mud.ssh.SshPacket

addPayload, getByte, getBytes, getData, getInt16, getInt32, getString, getType, isFinished, putByte, putBytes, putData, putInt16, putInt32, putMpInt, putString, setType

Constructor Details

SshPacket1

public SshPacket1(byte newType)

SshPacket1

public SshPacket1(SshCrypto _crypto)

Method Details

addPayload

public byte[] addPayload(byte[] buff)
Overrides:
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)
Overrides:
putMpInt in interface de.mud.ssh.SshPacket