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.
- RFC5656: Elliptic Curve Algorithm Integration in the SSH Transport Layer.
Re-exports§
pub use ::binrw;
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. - Helpers for different hashes and signatures encountered through the protocol.
Structs§
- The SSH identification string as defined in the SSH protocol.
- A SSH 2.0 binary packet representation.
Enums§
- The error types that can occur when manipulating this crate.
- A SSH 2.0 message in it’s decrypted form.
Constants§
- Maximum size for a SSH packet, coincidentally this is the maximum size for a TCP packet.
- Minimum size for a SSH packet, coincidentally this is the largest block cipher’s block-size.
Traits§
- A trait with common methods and associated types involved in the manipulation of
OpeningCipher
andSealingCipher
. - The algorithm parameters for the Message Authentication Code.
- A cipher able to
open
aPacket
and retrieve it’s payload. - A cipher able to
seal
a payload to create aPacket
.