Crate ssh_packet

source ·
Expand description

ssh-packet

docs.rs Crates.io

Representations of SSH packets interoperable with their binary wire representation, using binrw.

This includes a partial implementation of:


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.
  • Messages involved in the SSH’s authentication (SSH-USERAUTH) part of the protocol, as defined in the RFC 4252 and RFC 4256.

Structs

  • The SSH identification string as defined in the SSH protocol.
  • A SSH 2.0 binary packet representation, including it’s encrypted payload.

Enums

Traits

  • The BinRead trait reads data from streams and converts it into objects.
  • The BinWrite trait serialises objects and writes them to streams.

Derive Macros