KEM
A public key method for agreeing a shared secret, where one side generates a random secret and sends it locked so that only the other side's private key can open it.
In more detail
KEM stands for key encapsulation mechanism. It has three steps: the receiver generates a key pair, the sender runs encapsulate against the public key to get a shared secret plus a ciphertext, and the receiver runs decapsulate on the ciphertext to recover the same secret. The shared secret then keys a fast symmetric cipher such as AES. ML-KEM is the standard post-quantum example.
Examples
openssl pkeyutl -encap -pubin -inkey bob.pub -secret alice.bin -out ct.binopenssl pkeyutl -decap -inkey bob.key -in ct.bin -secret bob.binRelated terms
- ML-KEM — The NIST-standard post-quantum key encapsulation mechanism, used to agree a shared secret key in a way that a quantum computer is not known to break.
- key exchange — The step in which two parties establish a shared secret key over a network, so they can then encrypt their conversation.
- hybrid encryption — Combining public-key cryptography, used briefly to set up a shared key, with a fast symmetric cipher that then encrypts the actual data.
- public key — The shareable half of a key pair, used by others to verify your signatures or encrypt data only you can read.
Taught in
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography