← Cryptography guide

K074 / Cryptographic protocols and formats

TLS 1.3

TLS 1.3 protocol · Survey date 2026-12-05

TLS 1.3 authenticates peers, negotiates cryptographic algorithms and parameters, and establishes shared keying material through a handshake; its record protocol protects traffic.

CRYPTOGRAPHY LAB / K074

Cryptography Lab · TLS 1.3

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

TLS 1.3 (SHA-256 handshake key schedule; no network/certificates)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
TLS 1.3 authenticates peers, negotiates cryptographic algorithms and parameters, and establishes shared keying material through a handshake; its record protocol protects traffic. Source document ↗
Classification and reversibility
AEAD-based cryptographic protocol; legitimate traffic keys enable decryption, not mere encoding. Source document ↗
Key or secret requirements
Handshake derives shared secrets, traffic keys and IVs; keys/IVs derive from directional traffic secrets. Source document ↗
Operating principle and structure
Handshake and record layers; HKDF-Extract/Expand key schedule derives keys protecting each record. Source document ↗
Key size, block size and parameters
Traffic keys: 16 bytes for AES-128-GCM or 32 bytes for AES-256-GCM/ChaCha20-Poly1305. Source document ↗
Security strength and recommendation
TLS 1.3 is the latest version in the survey, designed to be safer than predecessors and recommended. Source document ↗
Known attacks and vulnerabilities
Serious attacks on widely used TLS/DTLS cipher suites/modes require disabling vulnerable features and updating. Source document ↗
Standards and certification
RFC 9846 is cited as a Proposed Standard (July 2026) for TLS 1.3, obsoleting RFC 8446 and others. Source document ↗
Typical uses
Secure transport layer for web, APIs and other application protocols. Source document ↗
Implementations, libraries and tools
Go crypto/tls and similar libraries implement TLS 1.3 key schedules and traffic-key derivation. Source document ↗
Decryption or decoding
Record decryption uses negotiated traffic key, IV and sequence for AEAD open to verify header/ciphertext and decrypt. Source document ↗
Advantages
Fresh shared secrets per connection and directional traffic keys provide forward secrecy. Source document ↗
Limitations and cautions
Long keys/certificates can increase computation time on server and client. Source document ↗
Distinguishing encryption, encoding and hashing
Hashing is used for transcript hashes and HKDF; TLS ciphertext is keyed AEAD, not encoding. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Client/server authenticate and agree keys by handshake, exchange application records encrypted with directional AEAD traffic keys. No real secrets in example.

Procedure

Verify certificate and handshake, derive traffic keys/IVs, AEAD-encrypt each record; verify/decrypt with same traffic key, IV and sequence. Base64/UTF-8 are keyless format conversions.

Scenario

Protect web/API HTTPS, server mTLS and both client-proxy and proxy-server legs of TLS termination. Protect post-proxy segment separately when end-to-end security is required.

Pitfalls and alternatives

Avoid TLS 1.0/1.1, weak suites, skipped certificate checks, logging keys/IV/session secrets and confusing TLS with Base64. Use TLS 1.3/current libraries/recommended settings and enforce certificate validation.

References