← Back to section · Digital Security
Anatomy of the TLS 1.3 Handshake: What Happens in One Round Trip
TLS 1.3 compresses the handshake into a single round trip, encrypts most of the handshake in the process, and deletes the unsafe legacy algorithms. A section-by-section dissection of where its speed and safety come from.
From Two Round Trips to One
A full TLS 1.2 handshake needs two round trips (2-RTT) before application data can flow: the first round exchanges greetings, negotiates the version and cipher suite, and swaps certificates; only the second round performs key exchange and mutual verification. On high-latency links, that extra round is real user waiting time.
TLS 1.3 (RFC 8446, published in 2018) solves this by “guess first, verify later.” The client attaches its key share (key_share) to the very first message, the ClientHello, betting that the server will accept the elliptic-curve group it proposed. If the bet pays off, the server returns its own share in the ServerHello, both sides can immediately compute the session keys — and the server’s certificate, verify message, and Finished already travel inside the encrypted channel. The client answers with a Finished, the handshake is complete, and the total cost is one round trip. If the group guess was wrong, the server uses HelloRetryRequest to ask the client to retry with a different group, costing one extra round trip but no loss of correctness.
How the Keys Are Derived, Step by Step
The TLS 1.3 key schedule is a one-way chain. The shared secret produced by (EC)DHE is first mixed with a string of zeros to extract the Early Secret; one derivation round produces the Handshake Secret, from which separate client and server handshake traffic keys are cut to encrypt the second half of the handshake; a final derivation yields the Master Secret, from which the application traffic keys and the resumption master secret are cut. Every level passes through HKDF’s Extract and Expand steps, and the hash transcript of the handshake messages is stirred into the labels — which means any tampering with handshake messages makes the two sides derive different keys, and the connection fails outright instead of quietly downgrading.
One easily overlooked detail of this chain: keys roll. After the connection is established, either side can send a KeyUpdate message and rotate the application traffic keys without a new handshake, so long-lived connections need not worry about a single key set being used for too long.
Another point worth remembering is how the record layer protects data: every TLS record uses its sequence number in nonce construction, so a nonce never repeats under the same key; the record content type also sits inside the encrypted region, so an onlooker cannot tell whether a record carries application data or a control message such as an alert or a key update. Handshake encryption and record-layer encryption together form TLS 1.3’s overall posture of exposing as little metadata as possible.
The Encrypted Handshake: What Onlookers No Longer See
In TLS 1.2, the server’s certificate was sent in plaintext — a network onlooker knew exactly which site you were connecting to (even without looking at SNI) and could collect certificates for fingerprinting. TLS 1.3 places every handshake message after the ServerHello inside the encrypted channel: EncryptedExtensions, the certificate, CertificateVerify, and Finished are all ciphertext. What an onlooker can still see is mainly a few extensions in the ClientHello, such as SNI and ALPN — precisely the gap that ECH (Encrypted Client Hello) later tries to close.
For privacy, this step matters as much as the performance work. It compresses the visible “who is talking to whom” information close to its floor and largely defeats passive monitoring based on certificate fingerprints.
What Was Deleted Matters More Than What Was Added
Much of TLS 1.3’s security comes from subtraction. It removed: static RSA key exchange (the old mode where the server’s private key directly decrypts the pre-master secret), static DH, RC4, 3DES, MD5, SHA-1 signatures, CBC-mode suites, compression, and renegotiation. Only five cipher suites remain, each defining nothing but the symmetric cipher and hash: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, and two AES-CCM variants — all AEAD (authenticated encryption with associated data). Key exchange and signature algorithms no longer live in the suite; they are negotiated separately through extensions.
Deleting static RSA key exchange has a structural consequence: forward secrecy becomes mandatory. Every connection’s session keys come from ephemeral (EC)DHE; the server’s long-term private key is used only to sign its identity and never participates in decryption. If that private key leaks later, an attacker still cannot decrypt traffic recorded earlier — a direct answer to the “harvest now, decrypt later” risk model.
Negotiation Changed Too: Extensions Run the Show
One inconspicuous but far-reaching change: version negotiation no longer relies on a dedicated field. In TLS 1.2 and earlier, the version sat at a fixed position in the ClientHello, and middleboxes grew so accustomed to that position that any format change risked being blocked by ossified equipment — the well-known protocol ossification problem. TLS 1.3 moved version negotiation into the supported_versions extension and froze the ClientHello’s fixed version field at a compatibility value. It is paired with the GREASE mechanism (RFC 8701): clients deliberately insert random reserved values into extensions so middleboxes learn to pass along things they do not recognize, keeping room for future evolution. This design encrypts nothing directly, but it decides whether the protocol can keep evolving at all.
Key exchange negotiation follows the same idea: the supported_groups extension lists the curves the client supports, while key_share is the one group it “bets” on. If the server accepts, the handshake completes in one round trip; if it only supports a different group, it names that group explicitly in HelloRetryRequest and the client resends — negotiation failure has a formal fallback channel instead of mutual guessing.
Downgrade Protection: A Sentinel Written into the Random Value
With legacy algorithms deleted, attackers must also be stopped from “talking a connection down” to an old version. TLS 1.3 embeds a sentinel in the tail of the ServerHello random field: a server that supports 1.3 but is forced to negotiate TLS 1.2 or lower must write a fixed downgrade marker into the last bytes of its random value. A client that supports 1.3 and sees this marker knows someone interfered, and aborts the connection immediately. The TLS 1.3 Finished check covers the entire handshake transcript, leaving tampering with negotiation results nowhere to hide.
Summary
TLS 1.3 is not a patch on 1.2 but a redrawn line: one round trip, an encrypted handshake, mandatory forward secrecy, minimal suites, and a downgrade sentinel. Understanding its structure is the foundation for everything that follows — hybrid key exchange stuffs an additional post-quantum share into key_share, session resumption is a shortcut built on top of this key chain, and ECH patches the last plaintext gap it left behind.
Tags: TLS 1.3HandshakeForward Secrecy