← Back to section · Education & Knowledge Base
Key-Establishment Terminology: Exchange, Agreement, Transport, and Encapsulation
Key exchange, key agreement, and key transport sound like synonyms, but in cryptography they name three different mechanisms — and the post-quantum era has added the key encapsulation interface. This article explains the group term by term and corrects the common misuses.
Before two devices can communicate securely over an untrusted network, they must first come to hold a secret that only the two of them know. Cryptography has accumulated a cluster of look-alike terms for this step: exchange, agreement, transport, encapsulation. Mixing them up in casual reporting does little harm, but mixing them up while reading standards and protocol documents leads to real misreadings of the mechanism — especially now that the post-quantum standards have made “key encapsulation” a formal interface, where these distinctions decide whether you can read FIPS 203 at all. This article works through the group by mechanism.
Three verbs: exchange, agreement, transport
Key exchange is the umbrella term: the whole family of methods by which two parties interact over a public channel and end up holding a common secret value. In everyday usage it is also used as the name of specific protocols, which is where the confusion starts.
Key agreement is one subclass: the final key is jointly determined by both parties’ inputs, and neither side can unilaterally force the key to a preselected value. The classic Diffie–Hellman protocol is agreement — each side picks an ephemeral private key, each combines the other’s public key with its own private key, both arrive at the same result, and neither could have dictated that result in advance. The word “agreement” stresses exactly this two-way influence.
Key transport is the other subclass: one party generates the key on its own and sends it to the other party protected under the recipient’s public key, which the recipient decrypts. RSA key transport in early TLS is the canonical example: the client chose the pre-master secret and sent it encrypted to the server. Transport and agreement have different security properties — under transport, the confidentiality of the key rests entirely on the recipient’s private key, so if that key leaks later, every past session becomes decryptable. That is why modern protocols have abandoned it.
The KEM’s three interface words: key generation, encapsulation, decapsulation
A key encapsulation mechanism (KEM) is the central interface of the post-quantum era. It standardizes “establishing a shared secret” as three algorithms:
- Key generation: the recipient generates an encapsulation public key and a decapsulation private key;
- Encapsulation: the sender uses the encapsulation public key to produce a ciphertext and, at the same time, a shared secret;
- Decapsulation: the recipient uses the private key to recover the same shared secret from the ciphertext.
Three frequent misuses need correcting here. First, a KEM is not public-key encryption: public-key encryption encrypts an arbitrary message chosen by the sender, whereas the shared secret a KEM produces is generated randomly inside the algorithm — the sender cannot choose its value. The sender “chooses” only randomness; the output is the twin pair of ciphertext and secret. Second, what gets encapsulated is not a ready-made session key but a fresh random secret, which still needs derivation before use (see the next section). Third, the names “encapsulation key” and “decapsulation key” are deliberate: KEM key pairs are named by purpose, just as signing keys and verification keys are in signatures, so that a generic “public key / private key” does not blur what the keys are for.
ML-KEM (FIPS 203) is a KEM, not an encryption algorithm; and in TLS 1.3 hybrid key exchange, ML-KEM plays exactly this encapsulation half, its secret then combined with the secret agreed via classical ECDH.
From shared secret to session key: derivation and context binding
A shared secret is the direct output of key establishment, but it usually cannot be used as a key directly: its distribution may be uneven, its length may not match what a cipher expects, and, most importantly, it carries no binding to “which session, between which identities” it belongs to. The step that turns a shared secret into a usable key is key derivation, performed by a key derivation function (KDF) such as HKDF. The session transcript, the two identities, protocol labels, and similar data mixed in during derivation are called the context (with salt as a related input); their job is to make the same shared secret yield unrelated keys in different sessions, preventing cross-protocol and cross-session misuse.
A related pair is ephemeral key versus static key: an ephemeral key is generated fresh for each session and discarded afterwards; a static key is long-lived and usually bound to an identity. Forward secrecy comes precisely from the ephemeral usage: the session key depends on both parties’ ephemeral private keys, so a later leak of the long-term keys cannot reconstruct past session keys. Conversely, RSA key transport lacked forward secrecy because it staked the confidentiality of every session secret on the server’s static private key.
One more umbrella term is hybrid key exchange: a classical algorithm and a post-quantum algorithm run in parallel within the same protocol, and their two shared secrets are combined during derivation, so the security is the union of the two — if either algorithm is broken, the other secret still stands.
A pair of terms about authentication is also often blurred: implicit authentication and key confirmation. Implicit authentication means the protocol itself guarantees only that “no one other than the intended peer can compute this key”, without producing evidence that the peer actually has computed it; key confirmation goes one step further, using the new key to compute a check value over agreed data and sending it to the peer, so both sides obtain explicit evidence that the other holds the same key. Many protocols achieve implicit authentication first and attach key confirmation to later handshake messages. Glossing over “the protocol is authenticated” without separating these two layers misses a crucial distinction when analysing impersonation and man-in-the-middle surfaces: in a protocol without key confirmation, one side may believe a session is established while the other never actually participated.
Closing: a self-check list for reading documents
When you meet key-establishment terminology, ask three questions. Is the key’s value decided by one party or jointly (transport or agreement)? Is the interface arbitrary-message encryption or random-secret encapsulation (public-key encryption or KEM)? Is the output directly usable, or must it pass through derivation (shared secret or session key)? Answer those three, and the outline of the mechanism cannot go wrong. Precision in terminology is never a word game: every misuse erases a real boundary between security properties.
Tags: key exchangekey encapsulationKEMterminology