Expand description
TLS Handshake message parsing and building.
Implements the generic handshake header (type:1 + length:3 + body) and all specific handshake message types.
Re-exports§
pub use certificate::Certificate;pub use certificate::CertificateRequest;pub use certificate::CertificateVerify;pub use client_hello::ClientHello;pub use finished::Finished;pub use key_exchange::ClientKeyExchange;pub use key_exchange::ServerKeyExchange;pub use server_hello::ServerHello;
Modules§
- certificate
- TLS Certificate,
CertificateVerify, andCertificateRequestmessages. - client_
hello - TLS
ClientHellomessage parsing and building. - finished
- TLS Finished message (type 20).
- key_
exchange - TLS Key Exchange messages (
ServerKeyExchange,ClientKeyExchange). - server_
hello - TLS
ServerHellomessage parsing and building.
Structs§
- Handshake
- Generic TLS Handshake message.
Enums§
- Handshake
Body - Parsed handshake message body.
Constants§
- HANDSHAKE_
HEADER_ LEN - Handshake header size: 1 (type) + 3 (length) = 4 bytes.
Functions§
- parse_
handshakes - Parse all handshake messages from a TLS record fragment.