ArticleslgStudy

science

Key encapsulation mechanism

Key encapsulation mechanism is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Key encapsulation mechanism rather than just read about it. In short: In cryptography, a key encapsulation mechanism (KEM) is a public-key cryptosystem that allows a sender to generate a short secret key and transmit it to a receiver confidentially, in spite of eavesdropping and intercepting adversaries. Modern standards for public-key encryption of arbitrary messages are usually based on KEMs.

Key encapsulation mechanism — main illustration
Key encapsulation mechanism — illustration

Key takeaways

  • Key encapsulation mechanism belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Key encapsulation mechanism to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Key encapsulation mechanism from memory before moving on to harder problems.

Reference excerpt

In cryptography, a key encapsulation mechanism (KEM) is a public-key cryptosystem that allows a sender to generate a short secret key and transmit it to a receiver confidentially, in spite of eavesdropping and intercepting adversaries. Modern standards for public-key encryption of arbitrary messages are usually based on KEMs. A KEM allows a sender who knows a public key to simultaneously generate a short random secret key and an encapsulation or ciphertext of the secret key by the KEM's encapsulation algorithm. The receiver who knows the private key corresponding to the public key can recover the same random secret key from the encapsulation by the KEM's decapsulation algorithm. The security goal of a KEM is to prevent anyone who does not know the private key from recovering any information about the encapsulated secret keys, even after eavesdropping or submitting other encapsulations to the receiver to study how the receiver reacts.

Difference from public-key encryption

The difference between a public-key encryption scheme and a KEM is that a public-key encryption scheme allows a sender to choose an arbitrary message from some space of possible messages, while a KEM chooses a short secret key at random for the sender. The sender may take the random secret key produced by a KEM and use it as a symmetric key for an authenticated cipher whose ciphertext is sent alongside the encapsulation to the receiver. This serves to compose a public-key encryption scheme out of a KEM and a symmetric-key authenticated cipher in a hybrid cryptosystem. Most public-key encryption schemes such as RSAES-PKCS1-v1_5, RSAES-OAEP, and Elgamal encryption are limited to small messages and are almost always used to encrypt a short random secret key in a hybrid cryptosystem anyway. And although a public-key encryption scheme can conversely be converted to a KEM by choosing a random secret key and encrypting it as a message, it is easier to design and analyze a secure KEM than to design a secure public-key encryption scheme as a basis. So most modern public-key encryption schemes are based on KEMs rather than the other way around.

Definition

Syntax A KEM consists of three algorithms:

Key generation, ( p k , s k ) := Gen ⁡ ( ) {\displaystyle ({\mathit {pk}},{\mathit {sk}}):=\operatorname {Gen} ()} , takes no inputs and returns a pair of a public key p k {\displaystyle {\mathit {pk}}} and a private key s k {\displaystyle {\mathit {sk}}} . Encapsulation, ( k , c ) := Encap ⁡ ( p k ) {\displaystyle (k,c):=\operatorname {Encap} ({\mathit {pk}})} , takes a public key p k {\displaystyle {\mathit {pk}}} , randomly chooses a secret key k {\displaystyle k} , and returns k {\displaystyle k} along with its encapsulation c {\displaystyle c} . Decapsulation, k ′ := Decap ⁡ ( s k , c ′ ) {\displaystyle k':=\operatorname {Decap} ({\mathit {sk}},c')} , takes a private key s k {\displaystyle {\mathit {sk}}} and an encapsulation c ′ {\displaystyle c'} , and either returns an encapsulated secret key k ′ {\displaystyle k'} or fails, sometimes denoted by returning ⊥ {\displaystyle \bot } (called "bottom"). In the asymptotic setting of theoretical cryptography, the algorithms are all probabilistic polynomial-time in a security parameter λ {\displaystyle \lambda } , and the length of the secret key k {\displaystyle k} is a function of the security parameter λ {\displaystyle \lambda } . In practical cryptography, the secret key k {\displaystyle k} is usually of a fixed length for each algorithm. For example, ML-KEM always uses 256-bit secret keys, while the algorithms in RFC 9180 vary between 256-, 384-, and 512-bit secret keys; secret keys of arbitrary length can be derived from k {\displaystyle k} by a key derivation function.

Explicit vs. implicit rejection Decapsulation can fail because its input c ′ {\displaystyle c'} is not an encapsulation c {\displaystyle c} returned by Encap, but has been tampered with or maliciously crafted. KEMs which report failure by a distinguished symbol ⊥ {\displaystyle \bot } (implemented in practice by returning an error code or raising an exception) are said to use explicit rejection. A KEM may instead return a random secret key in this event, or a secret key derived pseudorandomly from c ′ {\displaystyle c'} under the key s k {\displaystyle sk} ; this is called implicit rejection.

… excerpt ends here. Continue reading the full article.

Illustrations

Key encapsulation mechanism: A key encapsulation mechanism, to confidentially transport a random secret key 
  
    
      
        k
      
    
    {\displaystyle k}
  
 from a sender to a receiver, consists of three algorithms: Gen, Encap, and Decap.  Circles shaded blue—the receiver's public key 
  
    
      
        p
        k
      
    
    {\displaystyle pk}
  
 and the encapsulation 
  
    
      
        c
      
    
    {\displaystyle c}
  
—can be safely revealed to an adversary, while boxes shaded red—the receiver's private key 
  
    
      
        s
        k
      
    
    {\displaystyle sk}
  
 and the encapsulated secret key 
  
    
      
        k
      
    
    {\displaystyle k}
  
—must be kept secret.  The secret key 
  
    
      
        k
      
    
    {\displaystyle k}
  
 is chosen at random inside the logic of Encap, and the sender has no control over it.
A key encapsulation mechanism, to confidentially transport a random secret key k {\displaystyle k} from a sender to a receiver, consists of three algorithms: Gen, Encap, and Decap. Circles shaded blue—the receiver's public key p k {\displaystyle pk} and the encapsulation c {\displaystyle c} —can be safely revealed to an adversary, while boxes shaded red—the receiver's private key s k {\displaystyle sk} and the encapsulated secret key k {\displaystyle k} —must be kept secret. The secret key k {\displaystyle k} is chosen at random inside the logic of Encap, and the sender has no control over it.
Key encapsulation mechanism: A public-key encryption scheme, to confidentially transport an arbitrary message 
  
    
      
        m
      
    
    {\displaystyle m}
  
 from a sender to a receiver.  The message 
  
    
      
        m
      
    
    {\displaystyle m}
  
 is chosen by the sender.
A public-key encryption scheme, to confidentially transport an arbitrary message m {\displaystyle m} from a sender to a receiver. The message m {\displaystyle m} is chosen by the sender.

Worked examples

Example 1 — a first encounter with Key encapsulation mechanism

Start with the simplest possible case. Write down what Key encapsulation mechanism claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Key encapsulation mechanism before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Key encapsulation mechanism ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Key encapsulation mechanism

In research
Key encapsulation mechanism appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Key encapsulation mechanism in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Key encapsulation mechanism is common in secondary-school and first-year university syllabi. It links to neighbouring topics Key management, Public-key encryption schemes, so understanding it makes those chapters shorter.
In everyday life
Look for Key encapsulation mechanism outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Key encapsulation mechanism” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Key encapsulation mechanism in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Key encapsulation mechanism means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Key encapsulation mechanism out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Key encapsulation mechanism in simple terms?

In cryptography, a key encapsulation mechanism (KEM) is a public-key cryptosystem that allows a sender to generate a short secret key and transmit it to a receiver confidentially, in spite of eavesdropping and intercepting adversaries. Modern standards for public-key encryption of arbitrary message…

Why does Key encapsulation mechanism matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Key encapsulation mechanism?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Key encapsulation mechanism.

Tags

  • Key management
  • Public-key encryption schemes

Keep exploring