Crate ssh_packet
source ·Expand description
ssh-packet
Representations of SSH packets interoperable with their binary wire representation, using binrw.
This includes a partial implementation of:
- RFC4250: SSH Protocol Assigned Numbers.
- RFC4251: SSH Protocol Architecture.
- RFC4252: SSH Authentication Protocol.
- RFC4253: SSH Transport Layer Protocol.
- RFC4254: SSH Connection Protocol.
- RFC4256: Generic Message Exchange Authentication for SSH.
Note: this is currently a draft and shouldn’t be used, yet.
Modules
- Types defined in the SSH’s architecture (
SSH-ARCH
) part of the protocol, as defined in the RFC 4251. - Messages involved in the SSH’s connect (
SSH-CONNECT
) part of the protocol, as defined in the RFC 4254. - Messages involved in the SSH’s transport (
SSH-TRANS
) part of the protocol, as defined in the RFC 4253.
Structs
- The SSH identification string as defined in the SSH protocol.
- A SSH 2.0 binary packet representation, including it’s encrypted payload.
Enums
- The error type used by
BinRead
.
Traits
- The
BinRead
trait reads data from streams and converts it into objects. - The
BinWrite
trait serialises objects and writes them to streams.