← Back to section · Foundations of Cryptography

IND-CPA and IND-CCA: The Yardsticks of Public-Key Encryption

What does it mean for an encryption scheme to be 「secure」? Modern cryptography answers with indistinguishability games: from passive eavesdropping to active tampering, how the IND-CPA and IND-CCA yardsticks tighten step by step, and why CCA security is today's pass mark.

Published 22 November 2026 · 5 min read · PQ Frontier

IND-CPA and IND-CCA: The Yardsticks of Public-Key Encryption
AI-generated site artwork
Video explainer · Asymmetric encryption: public and private keys

「Is this encryption algorithm secure?」 In modern cryptography, that sentence must first be translated into a precisely defined game before it deserves an answer. The IND family of definitions is the rulebook for that game: IND stands for indistinguishability, and the letters after it mark how far the attacker is allowed to go.

The Basic Game: Not Even One Plaintext Can Be Guessed

The indistinguishability game follows a fixed script. The attacker first studies the public key at leisure, then submits two equal-length plaintexts m0 and m1; the challenger picks one of them at random, encrypts it, and hands back the ciphertext; the attacker outputs a guess. If his success rate exceeds one half by a non-negligible amount, the scheme is insecure.

This definition looks surprisingly weak — it only asks that the attacker cannot tell which of two self-chosen plaintexts was encrypted. But it can be proven equivalent to a far stronger intuitive requirement: the attacker learns no partial information about the plaintext at all, not a single bit, not a single predicate. This notion, equivalent to 「semantic security」, was established by Goldwasser and Micali in the early 1980s, and it turned 「security」 from a slogan into a mathematical statement that can appear in theorems. One immediate corollary: no deterministic public-key encryption can satisfy IND — the same plaintext produces the same ciphertext, and the attacker simply encrypts both candidates and compares. Randomization is not optional; the definition mandates it.

CPA: Look, but Don’t Touch

In IND-CPA, CPA stands for chosen-plaintext attack. In this model, beyond observing ciphertexts, the attacker may encrypt arbitrary plaintexts of his choosing under the public key — for public-key encryption this is barely an extra power, since the public key is public and anyone can encrypt. IND-CPA is therefore effectively the minimum yardstick for public-key encryption: it models a purely passive, eavesdropping-only adversary.

Real adversaries are rarely so well-behaved. Servers decrypt the ciphertexts they receive and act on the results; error messages, response times, and whether padding is accepted all leak bits of the decryption outcome. A scheme that only meets CPA may collapse entirely in such an environment — which is exactly why the yardstick must be tightened further.

A detail often asked about: if public-key encryption already lets the attacker encrypt with the public key himself, why does the definition bother to include an 「encryption oracle」? The answer is that the same definition also serves symmetric encryption — where an encryption oracle is a very real extra power. The single notion of IND-CPA spans both public-key and symmetric settings, with different weight in each: nearly free for public-key schemes, it captures, for symmetric ones, the situation where an attacker can induce the system to encrypt data of his choosing. This reusability of the definitional framework is part of its elegance.

Quantifying the Definition: Advantage, Negligibility, and Reductions

Much of the power of these definitions lies in how they quantify. The attacker’s 「advantage」 is defined as the amount by which his guessing probability exceeds one half; 「negligible」 means decaying faster than the inverse of any polynomial — as the security parameter (such as key length) grows, such an advantage shrinks to practical irrelevance. The definitions never promise 「absolutely impossible」, only 「an advantage too small to exploit with reasonable resources」 — the fundamental divide between the computational and the information-theoretic views of security.

Paired with quantification is the style of reduction arguments: an IND-CCA proof for a scheme is usually written as 「if an attacker breaking this scheme existed, he could be used as a subroutine to solve some accepted hard problem」. The quality of a proof depends on the tightness of the reduction — the larger the reduction loss, the larger the keys needed for the same security level. Reading a serious security claim means checking three things: the type of game (CPA or CCA2), the problem it reduces to, and whether the reduction is tight. Marketing that names only an algorithm and a key length while avoiding all three provides no checkable security evidence at all.

CCA: The Attacker May Knock on the Decryption Door

IND-CCA hands the attacker a decryption oracle: he may submit arbitrary chosen ciphertexts (except the challenge ciphertext itself) and be told their decryptions. In CCA1 the oracle closes before the attacker receives the challenge ciphertext, modelling the weaker 「lunchtime attack」; CCA2 allows queries to continue after the challenge is issued, forbidding only the challenge ciphertext itself, and models the strongest adaptive adversary.

Why defend this far? Bleichenbacher’s 1998 attack on PKCS#1 v1.5 padding gave the bloody answer: with nothing more than a single bit of feedback — 「was the padding well-formed?」 — an attacker could, through millions of carefully crafted ciphertext queries, gradually recover a session key. The scheme had no obvious problem in the CPA sense, yet failed completely in the CCA sense. In the two decades since, padding-oracle and error-oracle attacks have resurfaced repeatedly in real systems such as TLS, confirming again and again that CCA security is not theoretical pedantry but the deployment pass mark.

How the Bar Is Cleared

There are two classical routes from CPA-secure constructions to CCA security. The first is the Fujisaki–Okamoto transform: a CPA-secure encryption (or a KEM precursor) is systematically lifted to CCA security by re-encrypting during decapsulation and checking consistency — the standardized construction of ML-KEM follows exactly this route. The second is the composition route: the right combination of encryption and message authentication (such as encrypt-then-MAC) also achieves CCA security, which is what modern AEAD and hybrid encryption do.

The point of understanding these two yardsticks is not memorizing definitions but acquiring judgement: when confronted with any scheme that claims to be 「secure」, ask first in which game it was proven, to which hard problem it reduces, and how large the advantage bound is. 「Security」 without a game and without a reduction is just advertising copy.

Tags: Security DefinitionsIND-CPAIND-CCAProvable Security