Skip to main content

Module handshake

Module handshake 

Source
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, and CertificateRequest messages.
client_hello
TLS ClientHello message parsing and building.
finished
TLS Finished message (type 20).
key_exchange
TLS Key Exchange messages (ServerKeyExchange, ClientKeyExchange).
server_hello
TLS ServerHello message parsing and building.

Structs§

Handshake
Generic TLS Handshake message.

Enums§

HandshakeBody
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.