Expand description
Handshake packets to establish a confirmed connection via
handshake using diagram
Structs§
- Client
Handshake - The request of the client to create a TCP handshake.
- Handshake
Payload - The payload of a TCP handshake.
- Server
Handshake - The response of the server to a TCP handshake.
Constants§
- CLIENT_
HANDSHAKE_ SIZE - A serialized client handshake must be equal to 32 (PK) + 24 (nonce) + 72 (encrypted payload) bytes
- ENC_
PAYLOAD_ SIZE - A serialized encrypted payload must be equal to 32 (PK) + 24 (nonce) + 16 (MAC) bytes
- PAYLOAD_
SIZE - A serialized payload must be equal to 32 (PK) + 24 (nonce) bytes
- SERVER_
HANDSHAKE_ SIZE - A serialized server handshake must be equal to 24 (nonce) + 72 (encrypted payload) bytes