ArticleslgStudy

computer science

Searchable symmetric encryption

Searchable symmetric encryption is a computer 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 Searchable symmetric encryption rather than just read about it. In short: Searchable symmetric encryption (SSE) is a form of encryption that allows efficient searching over a collection of encrypted documents or files without requiring decryption. SSE can be used to outsource files to an untrusted cloud storage server without revealing the files in plaintext, while preserving the server's ability to perform searches over them.

Searchable symmetric encryption — main illustration
Searchable symmetric encryption — illustration

Key takeaways

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

Reference excerpt

Searchable symmetric encryption (SSE) is a form of encryption that allows efficient searching over a collection of encrypted documents or files without requiring decryption. SSE can be used to outsource files to an untrusted cloud storage server without revealing the files in plaintext, while preserving the server's ability to perform searches over them.

Description A searchable symmetric encryption scheme is a symmetric-key encryption scheme that encrypts a collection of documents 𝐃=(D1,…,Dn), where each document Di⊆𝕎 is viewed as a set of keywords from a keyword space 𝕎. Given the encryption key K and a keyword w∈𝕎, one can generate a search token tk with which the encrypted data collection can be searched for w. The result of the search is the subset of encrypted documents that contain the keyword w.

Static SSE A static SSE scheme consists of three algorithms 𝖲𝖲𝖤=(𝖲𝖾𝗍𝗎𝗉,𝖳𝗈𝗄𝖾𝗇,𝖲𝖾𝖺𝗋𝖼𝗁) that work as follows:

𝖲𝖾𝗍𝗎𝗉 takes as input a security parameter k and a document collection 𝐃 and outputs a symmetric key K, an encrypted index 𝐈, and an encrypted document collection 𝐄𝐃 𝖳𝗈𝗄𝖾𝗇 takes as input the secret key K and a keyword w and outputs a search token tk 𝖲𝖾𝖺𝗋𝖼𝗁 takes as input the encrypted index 𝐈, the encrypted document collection 𝐄𝐃 and a search token tk and outputs a set of encrypted documents 𝐑⊆𝐄𝐃 A static SSE scheme is used by a client and an untrusted server as follows: the client encrypts its data collection using the 𝖲𝖾𝗍𝗎𝗉 algorithm which returns a secret key K, an encrypted index 𝐈, and an encrypted document collection 𝐄𝐃. The client keeps K secret and sends 𝐄𝐃 and 𝐈 to the untrusted server. To search for a keyword w, the client runs the 𝖳𝗈𝗄𝖾𝗇 algorithm on K and w to generate a search token tk which it sends to the server. The server runs Search with 𝐄𝐃, 𝐈, and tk and returns the resulting encrypted documents back to the client.

Dynamic SSE A dynamic SSE scheme supports, in addition to search, the insertion and deletion of documents. A dynamic SSE scheme consists of seven algorithms 𝖲𝖲𝖤=(𝖲𝖾𝗍𝗎𝗉,𝖳𝗈𝗄𝖾𝗇,𝖲𝖾𝖺𝗋𝖼𝗁,𝖨𝗇𝗌𝖾𝗋𝗍𝖳𝗈𝗄𝖾𝗇,𝖨𝗇𝗌𝖾𝗋𝗍,𝖣𝖾𝗅𝖾𝗍𝖾𝖳𝗈𝗄𝖾𝗇,𝖣𝖾𝗅𝖾𝗍𝖾) where 𝖲𝖾𝗍𝗎𝗉, 𝖳𝗈𝗄𝖾𝗇, and 𝖲𝖾𝖺𝗋𝖼𝗁 are as in the static case and the remaining algorithms work as follows:

𝖨𝗇𝗌𝖾𝗋𝗍𝖳𝗈𝗄𝖾𝗇 takes as input the secret key K and a new document Dn+1 and outputs an insert token itk 𝖨𝗇𝗌𝖾𝗋𝗍 takes as input the encrypted document collection 𝐄𝐃 and an insert token itk and outputs an updated encrypted document collection 𝐄𝐃′ 𝖣𝖾𝗅𝖾𝗍𝖾𝖳𝗈𝗄𝖾𝗇 takes as input the secret key K and a document identifier id and outputs a delete token dtk 𝖣𝖾𝗅𝖾𝗍𝖾 takes as input the encrypted data collection 𝐄𝐃 and a delete token dtk and outputs an updated encrypted data collection 𝐄𝐃′ To add a new document Dn+1 the client runs 𝖨𝗇𝗌𝖾𝗋𝗍𝖳𝗈𝗄𝖾𝗇 on K and Dn+1to generate an insert token itk which it sends to the server. The server runs 𝖨𝗇𝗌𝖾𝗋𝗍 with 𝐄𝐃 and itk and stores the updated encrypted document collection. To delete a document with identifier id, the client runs the 𝖣𝖾𝗅𝖾𝗍𝖾𝖳𝗈𝗄𝖾𝗇 algorithm with K and id to generate a delete token dtk which it sends to the server. The server runs 𝖣𝖾𝗅𝖾𝗍𝖾 with 𝐄𝐃 and dtk and stores the updated encrypted document collection. An SSE scheme that does not support 𝖣𝖾𝗅𝖾𝗍𝖾𝖳𝗈𝗄𝖾𝗇 and 𝖣𝖾𝗅𝖾𝗍𝖾 is called semi-dynamic.

History of Searchable Symmetric Encryption The problem of searching on encrypted data was considered by Song, Wagner and Perrig, although earlier work on Oblivious RAM by Goldreich and Ostrovsky could, in theory, be used to address the problem. This work proposed an SSE scheme with a search algorithm that runs in time O(s), where s=|𝐃|. Goh and Chang and Mitzenmacher proposed new SSE constructions with search algorithms that run in time O(n), where n is the number of documents. Curtmola, Garay, Kamara and Ostrovsky later proposed two static constructions with O(opt) search time, where opt is the number of documents that contain w, which is optimal. This work also proposed a semi-dynamic construction with O(opt⋅log⁡(u)) search time, where u is the number of updates. An optimal dynamic SSE construction was later proposed by Kamara, Papamanthou and Roeder. Goh and Chang and Mitzenmacher proposed security definitions for SSE. These were later strengthened and extended by Curtmola, Garay, Kamara and Ostrovsky, who introduced the notion of adaptive security for SSE. This work was also the first to observe leakage in SSE and to formally capture it as part of the security definition. Leakage was further formalized and generalized by Chase and Kamara. Islam, Kuzu and Kantarcioglu described the first leakage attack. All the previously mentioned constructions support single-keyword search. Cash, Jarecki, Jutla, Krawczyk, Roşu and Steiner proposed an SSE scheme that supports conjunctive search in sub-linear time in n. The construction can also be extended to support disjunctive and Boolean searches that can be expressed in searchable normal form (SNF) in sub-linear time. At the same time, Pappas, Krell, Vo, Kolesnikov, Malkin, Choi, George, Keromytis and Bellovin described a construction that supports conjunctive and all disjunctive and Boolean searches in sub-linear time.

Security SSE schemes are designed to ensure that an untrusted server cannot learn any partial information about the documents or search queries beyond a well-defined and reasonable leakage. The leakage of a scheme is formally described using a leakage profile, which itself can consist of several leakage patterns. SSE constructions attempt to minimize leakage while achieving the best possible search efficiency. SSE security can be analyzed in several adversarial models, but the most common are:

the persistent model, in which an adversary is given the encrypted data collection and a transcript of all operations executed on the collection; the snapshot model, in which an adversary is given only the encrypted data collection (possibly after each operation).

… excerpt ends here. Continue reading the full article.

Illustrations

Searchable symmetric encryption: Keyword search using an SSE scheme
Keyword search using an SSE scheme

Worked examples

Example 1 — a first encounter with Searchable symmetric encryption

Start with the simplest possible case. Write down what Searchable symmetric encryption claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 Searchable symmetric encryption 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 Searchable symmetric encryption 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 Searchable symmetric encryption

In research
Searchable symmetric encryption appears in computer 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 Searchable symmetric encryption 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
Searchable symmetric encryption is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptographic primitives, so understanding it makes those chapters shorter.
In everyday life
Look for Searchable symmetric encryption 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 “Searchable symmetric encryption” →

How to study Searchable symmetric encryption in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Searchable symmetric encryption 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 Searchable symmetric encryption out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Searchable symmetric encryption in simple terms?

Searchable symmetric encryption (SSE) is a form of encryption that allows efficient searching over a collection of encrypted documents or files without requiring decryption. SSE can be used to outsource files to an untrusted cloud storage server without revealing the files in plaintext, while prese…

Why does Searchable symmetric encryption matter?

Because it connects several computer 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 Searchable symmetric encryption?

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 Searchable symmetric encryption.

Tags

  • Cryptographic primitives

Keep exploring