When two devices need mutual authentication over WiFi, Bluetooth, or NFC, a long public key may be impractical. CPace lets both parties use a shared password to establish a secure session key. section 11.3.2 section 11.4
A simplified CPace exchange proceeds as follows:
- Both devices derive a generator for a predetermined cyclic group from the shared password. section 11.3.2
- They use that generator as the base for an ephemeral Diffie-Hellman exchange. section 11.3.2
- They derive the session key from the exchange output, ephemeral public-key transcript, and unique session ID. section 11.3.2
Connecting a new device
Instead of manually entering a cumbersome public key, a user enters a short shared password on both devices, as commonly happens when joining home WiFi. section 11.4
Figure 11.14 The CPace PAKE works by having the two devices create a generator based on a password and then use it to perform as a base for the usual ephemeral DH key exchange.
The figure shows the password-derived generator becoming the base for the usual ephemeral Diffie-Hellman exchange. section 11.3.2
