Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Binary Packet Length field in SSH1
January 14, 2006, 9:46 am
rate this thread
o Packet length: 32 bit unsigned integer, coded as four 8-bit
bytes, msb first. Gives the length of the packet, not
the length field and padding. The maximum length of a packet
(not including the length field and padding) is 262144 bytes.
Why not just use a 24 bit unsigned integer coded as three 8-bit bytes?
2^24 is 262144. Having an extra byte in there that does nothing seems
Re: Binary Packet Length field in SSH1
Maybe. However, when implementing the protocol, for most architectures
it will be simpler to map a 32-bit chunk on to a primitive data type (an
unsigned int, usually) than a 24-bit chunk - unless your primitive data
type happens to be 24 bits long.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum