ssh_packet/lib.rs
1#![doc = include_str!("../README.md")]
2//!
3
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![warn(
6 missing_docs,
7 clippy::todo,
8 clippy::unwrap_used,
9 clippy::unimplemented,
10 clippy::undocumented_unsafe_blocks
11)]
12#![forbid(unsafe_code)]
13
14/// Maximum size for a packet, coincidentally this is
15/// the maximum size for a TCP packet.
16pub const MAX_SIZE: usize = u16::MAX as usize;
17
18/// Minimum size for a packet, coincidentally this is
19/// the largest block cipher's block-size.
20pub const MIN_SIZE: usize = 16;
21
22mod binary;
23pub use binary::{Error, Packet};
24
25pub mod arch;
26pub mod connect;
27pub mod kex;
28pub mod sig;
29pub mod trans;
30pub mod userauth;