skip to content

How does OWE give each client its own keys on an open 802.11 network, and which frames carry its key exchange?

level: middleimportance: should knowfreq 20%

answer

  1. it happens during association
  2. OWE AKM in the RSN element
  3. Diffie-Hellman Parameter element both ways
  4. PMK via HKDF, then four-way handshake
  5. group 19 is mandatory

basics

~20 s

An OWE access point lists the OWE AKM in its RSN element. The client puts a Diffie-Hellman public key in its association request, the access point answers in the association response, and each side derives a per-client PMK for the four-way handshake.

solid answer

~40 s

The access point advertises the **OWE AKM** (suite selector 00-0F-AC, type 18) in the RSN element of its beacons and probe responses. The client does ordinary Open System authentication, then sends an association request carrying the OWE AKM and a **Diffie-Hellman Parameter element** with its group and public key. The access point replies in the association response with its own public key. Each side combines its private key with the peer's public key, runs the result through HKDF to get a **PMK** unique to that association, and the access point then starts the normal **four-way handshake** to derive the traffic keys. Nobody sends the PMK; a listener sees only public keys. Every implementation must support **group 19**, a 256-bit elliptic-curve group.

code

pseudocode · 10 lines
pseudocode
# OWE key derivation (RFC 8110 section 4.4), group 19 -> SHA-256
STA: x  = random private key;  C = public key for x
AP:  y  = random private key;  A = public key for y
STA -> AP  Association Request  (OWE AKM, DH Parameter element: group=19, C)
AP  -> STA Association Response (OWE AKM, DH Parameter element: group=19, A)
both: z     = F(DH(own private key, peer public key))
both: prk   = HKDF-extract(salt = C | A | group, z)
both: PMK   = HKDF-expand(prk, "OWE Key Generation", 256)
both: PMKID = Truncate-128(SHA-256(C | A))
AP  -> STA four-way handshake using PMK -> PTK and GTK installed

go deeper

for a junior

Recall that OWE's key exchange rides in the association request and response, and that each client ends with its own PMK.

for a middle

Walk through the frames: OWE AKM in the RSN element, the Diffie-Hellman Parameter element both ways, the HKDF-derived PMK, then the four-way handshake started by the access point.

for a senior

Explain the group negotiation and its failure path, PMK caching, and why the exchange gives confidentiality toward the peer but no proof of the peer's identity.

for a principal

Use the mechanism to set expectations: OWE removes a whole class of passive exposure with no provisioning, but its unauthenticated key agreement caps what any guest design built on it can promise.

## The problem OWE solves at the key level On a WPA2-Personal network the **Pairwise Master Key (PMK)** comes from the passphrase, so every client that knows the passphrase starts from the same PMK. On an open network there is no PMK at all. OWE, defined in RFC 8110, gives each association a **fresh PMK of its own** without any secret that has to be distributed. It does this with a Diffie-Hellman key agreement: each side holds a private key, publishes the matching public key, and both compute the same shared secret from their own private key and the peer's public key. The mathematics of the primitive is a cryptography subject; what matters here is where OWE carries it in 802.11 and what it produces. ## Discovery: the OWE AKM An access point that offers OWE adds the **OWE Authentication and Key Management (AKM) suite** to the **RSN element** in every beacon and probe response. RFC 8110 assigns it OUI `00-0F-AC`, suite type **18**; the Linux 802.11 headers name it `WLAN_AKM_SUITE_OWE`, and hostapd configures it as `wpa_key_mgmt=OWE`. ## The exchange, frame by frame 1. **AP -> STA, beacon or probe response:** RSN element listing the OWE AKM. 2. **STA -> AP, Authentication:** Open System authentication, exactly as on an open network. 3. **AP -> STA, Authentication:** success. 4. **STA -> AP, Association Request:** RSN element with the OWE AKM, plus a **Diffie-Hellman Parameter element** (Element ID 255, Element ID Extension 32) holding a two-octet group number and the client's public key. 5. **AP -> STA, Association Response:** RSN element with the OWE AKM and a Diffie-Hellman Parameter element holding the access point's public key. 6. **Both sides, no frame sent:** compute the shared secret and derive the PMK and its identifier, the PMKID. 7. **AP -> STA, EAPOL-Key message 1:** the access point starts the ordinary four-way handshake using that PMK, which yields the pairwise and group keys. Unlike SAE, OWE does not carry its exchange in Authentication frames: the Diffie-Hellman values ride in the association request and response. ## How the PMK is derived RFC 8110 section 4.4 defines the derivation with HKDF (RFC 5869): - `z = F(DH(x, Y))`, the x-coordinate of the shared elliptic-curve point; - `prk = HKDF-extract(C | A | group, z)`, salted with both public keys and the group; - `PMK = HKDF-expand(prk, "OWE Key Generation", n)`; - `PMKID = Truncate-128(Hash(C | A))`. The intermediate values `z` and `prk` should be deleted once the PMK exists. Because each side picks fresh private keys for a full exchange, every client ends up with its own PMK, and a new full exchange gives a new one; PMK caching, when both sides still hold an earlier PMK, deliberately reuses it instead of running a new exchange. ## Groups and hashes | Group | Hash used for OWE key derivation | Status | |---|---|---| | 19 (256-bit elliptic curve, NIST P-256) | SHA-256 | Mandatory for every implementation | | 20 | SHA-384 | Optional | | 21 | SHA-512 | Optional | The hash follows the size of the group's prime. hostapd enables every group its crypto library supports by default (`owe_groups` can narrow the list). If the access point does not support the group in the request, RFC 8110 says it must reject the association with status code 77, unsupported finite cyclic group, and the client should retry with another group. Since group 19 is mandatory, a retry with it succeeds against any implementation that has not been configured to exclude it. ## What the exchange does and does not prove - A passive listener sees two public keys and cannot compute the PMK, so it cannot decrypt the session. - Neither public key is bound to an identity, so the exchange proves nothing about **who** the peer is. OWE gives confidentiality and integrity toward whoever answered, not authentication. - The four-way handshake still runs and still proves both sides hold the same PMK; on OWE that PMK simply came from the exchange instead of a passphrase. - A received public key that fails the validity checks RFC 8110 prescribes for its group must end the association attempt and reset the 802.11 state machine; the client should retry a number of times and log the failure. ## Reading it in a capture or a log When checking that a guest network really negotiated OWE, look for three things: the OWE AKM in the RSN element of the access point's beacons, a Diffie-Hellman Parameter element in both the association request and the association response, and a completed four-way handshake afterwards. A client that associates without the OWE AKM in its request has joined as an ordinary open client, if the BSS allows that, and its traffic is not encrypted.

  • What happens when an OWE client proposes a Diffie-Hellman group the access point does not support?
    RFC 8110 says the access point must reject the association with status code 77, unsupported finite cyclic group. The client should retry with a different supported group, and the failure should be logged. Because every implementation must support group 19, retrying with it normally gives both sides a group in common.
  • How does PMK caching work on an OWE network?
    The client includes a PMKID alongside its Diffie-Hellman Parameter element in the association request. If the access point still holds that PMK, it returns the PMKID and omits its own Diffie-Hellman element, and the four-way handshake reuses the cached PMK. If it does not, it ignores the PMKID and completes a normal OWE exchange.
  • Why does hostapd have an owe_ptk_workaround setting?
    Early OWE implementations used SHA-256 when deriving the PTK for every group, while groups 20 and 21 call for SHA-384 and SHA-512. hostapd 2.10 corrected the derivation, which broke interoperability for those groups with older stations. owe_ptk_workaround=1 retries the SHA-256 derivation; it is off by default and group 19 is unaffected.

Two strangers at a café each mix a private colour into the same public base paint and swap pots; each adds their own colour again and both reach an identical mixture that a bystander who saw only the swapped pots cannot make. Neither stranger, though, has any idea who the other really is.

  • OWE's Diffie-Hellman exchange travels in Authentication frames, like SAE's commit.
  • With OWE the four-way handshake is skipped because the PMK is already shared.
  • The access point sends each OWE client its PMK, encrypted.
  • OWE uses one network-wide key that every client derives the same way.
  • OWE works only with group 19; no other group can be negotiated.