ArticleslgStudy

computer science

Ciphertext indistinguishability

Ciphertext indistinguishability 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 Ciphertext indistinguishability rather than just read about it. In short: Ciphertext indistinguishability is a property of many encryption schemes. Intuitively, if a cryptosystem possesses the property of indistinguishability, an adversary will be unable to distinguish pairs of ciphertext based on the message that they encrypt.

Key takeaways

  • Ciphertext indistinguishability 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 Ciphertext indistinguishability to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Ciphertext indistinguishability from memory before moving on to harder problems.

Reference excerpt

Ciphertext indistinguishability is a property of many encryption schemes. Intuitively, if a cryptosystem possesses the property of indistinguishability, an adversary will be unable to distinguish pairs of ciphertext based on the message that they encrypt. The property of indistinguishability under chosen plaintext attack is considered a basic requirement for most provably secure public key cryptosystems, but some schemes also provide indistinguishability under chosen ciphertext attack and adaptive chosen ciphertext attack. Indistinguishability under chosen plaintext attack is equivalent to the property of semantic security, and many cryptographic proofs use these definitions interchangeably. A cryptosystem is considered secure in terms of indistinguishability if no adversary, given an encryption of a message randomly chosen from a two-element message space determined by the adversary, can identify the message choice with probability significantly better than that of random guessing (1⁄2). If any adversary can succeed in distinguishing the chosen ciphertext with a probability significantly greater than 1⁄2, the adversary is considered to have an "advantage" in distinguishing the ciphertext, and the scheme is not considered secure in terms of indistinguishability. This definition encompasses the notion that in a secure scheme, the adversary should learn no information from seeing a ciphertext. Therefore, the adversary should be able to do no better than if it guessed randomly.

Formal definitions Security in terms of indistinguishability has many definitions, depending on assumptions made about the capabilities of the attacker. It is normally presented as a game in which the cryptosystem is considered secure if no adversary can win the game with significantly greater probability than an adversary who must guess randomly. The most common definitions used in cryptography are indistinguishability under chosen-plaintext attack (abbreviated IND-CPA), indistinguishability under (non-adaptive) chosen-ciphertext attack (IND-CCA1), and indistinguishability under adaptive chosen-ciphertext attack (IND-CCA2). Security under either of the latter definitions implies security under the previous ones: a scheme which is IND-CCA1–secure is also IND-CPA–secure, and a scheme which is IND-CCA2–secure is both IND-CCA1– and IND-CPA–secure. Thus, IND-CCA2 is the strongest of the three definitions of security.

Indistinguishability under chosen-plaintext attack (IND-CPA) For a probabilistic asymmetric-key encryption algorithm, indistinguishability under chosen-plaintext attack (IND-CPA) is defined by the following game between an adversary and a challenger. For schemes based on computational security, the adversary is modeled by a probabilistic polynomial time Turing machine, meaning that it must complete the game and output a guess within a polynomial number of time steps. In this definition, E(PK, M) represents the encryption of a message M under the key PK:

The challenger generates a key pair PK, SK based on some security parameter k (e.g., a key size in bits), and publishes PK to the adversary. The challenger retains SK. The adversary may perform a polynomially bounded number of encryptions or other operations. Eventually, the adversary submits two distinct chosen plaintexts M0, M1 to the challenger. The challenger selects a bit b ∈ {0, 1} uniformly at random, and sends the challenge ciphertext C = E(PK, Mb) back to the adversary. The adversary is free to perform any number of additional computations or encryptions. Finally, the adversary outputs a guess for the value of b. A cryptosystem is indistinguishable under chosen-plaintext attack if every probabilistic polynomial time adversary has only a negligible "advantage" over random guessing. An adversary is said to have a negligible "advantage" if it wins the above game with probability (12)+ϵ(k), where ϵ(k) is a negligible function in the security parameter k, i.e., for every (nonzero) polynomial function poly() there exists k0 such that |ϵ(k)|<|1poly(k)| for all k>k0. Although the adversary knows M0, M1 and PK, the probabilistic nature of E means that the encryption of Mb will be only one of many valid ciphertexts, and therefore encrypting M0, M1 and comparing the resulting ciphertexts with the challenge ciphertext does not afford any non-negligible advantage to the adversary. While the above definition is specific to an asymmetric-key cryptosystem, it can be adapted to the symmetric case by replacing the public-key encryption function with an encryption oracle, which retains the secret encryption key and encrypts arbitrary plaintexts at the adversary's request.

Symmetric IND-CPA game, formalized The adversarial process of performing a chosen-plaintext attack is usually outlined in the form of a cryptographic game. To test for symmetric IND-CPA, the game described above is defined. Let 𝒦 be a key generation function, ℰ be an encryption function, and 𝒟 be a decryption function. Let 𝒮ℰ=(𝒦,ℰ,𝒟) be a symmetric encryption scheme. The game "Guess" is defined as:

As many times as it would like, an adversary selects two plaintext messages of its own choosing and provides them to the LR oracle that returns a ciphertext encrypting one of the messages. An adversary's advantage is determined by its probability of guessing the value of b, a value chosen at random at the beginning of the game which determines the message that is encrypted in the LR oracle. Therefore, its advantage is defined as:Adv𝒮ℰind−cpa(A)=2⋅Pr⁡[Guess𝒮ℰA⇒true]−1

Indistinguishability under chosen-ciphertext attack/adaptive chosen-ciphertext attack (IND-CCA1, IND-CCA2) Indistinguishability under non-adaptive and adaptive chosen-ciphertext attack (IND-CCA1, IND-CCA2) uses a definition similar to that of IND-CPA. However, in addition to the public key (or encryption oracle, in the symmetric case), the adversary is given access to a decryption oracle which decrypts arbitrary ciphertexts at the adversary's request, returning the plaintext. In the non-adaptive definition, the adversary is allowed to query this oracle only up until it receives the challenge ciphertext. In the adaptive definition, the adversary may continue to query the decryption oracle even after it has received a challenge ciphertext, with the caveat that it may not pass the challenge ciphertext for decryption (otherwise, the definition would be trivial).

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Ciphertext indistinguishability

Start with the simplest possible case. Write down what Ciphertext indistinguishability 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 Ciphertext indistinguishability 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 Ciphertext indistinguishability 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 Ciphertext indistinguishability

In research
Ciphertext indistinguishability 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 Ciphertext indistinguishability 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
Ciphertext indistinguishability is common in secondary-school and first-year university syllabi. It links to neighbouring topics Theory of cryptography, so understanding it makes those chapters shorter.
In everyday life
Look for Ciphertext indistinguishability 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 “Ciphertext indistinguishability” →

How to study Ciphertext indistinguishability in 20 minutes

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

Frequently asked questions

What is Ciphertext indistinguishability in simple terms?

Ciphertext indistinguishability is a property of many encryption schemes. Intuitively, if a cryptosystem possesses the property of indistinguishability, an adversary will be unable to distinguish pairs of ciphertext based on the message that they encrypt.

Why does Ciphertext indistinguishability 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 Ciphertext indistinguishability?

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 Ciphertext indistinguishability.

Tags

  • Theory of cryptography

Keep exploring