SSHPacket class abstract

Contains rfc4253 packet format related constants and helper functions.

Constructors

SSHPacket()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

pack(Uint8List payload, {required int align}) → Uint8List
Returns a rfc4253 packet built from payload and align including the length field, padding length field, and padding. Withouth the MAC.
paddingLength(int payloadLength, {required int align}) → int
Computes the correct padding length for the packet from payloadLength and align.
readPacketLength(Uint8List packet) → int
Returns the length field of the packet. This is the number of bytes following the length field except for the MAC. packet can be partitial.
readPaddingLength(Uint8List packet) → int
Returns the length of padding at the end of the packet before the MAC. packet can be partitial.

Constants

headerLength → const int
The length of the packet header, is the sum of the lengths of the length field and the padding length field.
maxLength → const int
The maximum size of a packet including the header and MAC.
maxPayloadLength → const int
The maximum size of uncompressed packet payload.
minAlign → const int
rfc4253 requires the total length of the packet is a multiple of 8 or the cipher block size, whichever is larger.