PKE ⇒ KE
Statement
Let be a CPA-secure PKE scheme with message space , and a key space. The two-message protocol in which sends for , replies with for and outputs , and outputs , is a key exchange secure against eavesdroppers — folklore.
Sketch
The reduction submits independent uniform as its CPA challenge pair, presents as the transcript with as the candidate key, and outputs iff the eavesdropper declares real: when encrypts , is independent of the transcript.