Perfect Secrecy

1. Transition to Modern Cryptography

1.1. From Craft to Science

The lecture then moves from probability to the historical origins of modern cryptography. Earlier ciphers were designed more like secret military craft than as a public scientific discipline. This changed in the mid-20th century, especially around and after World War II, when many civilian mathematicians and engineers became involved in cryptanalysis.

1.2. Historical Weakness of Classical Ciphers

The central weakness of historical ciphers was that ciphertexts preserved properties of plaintexts. Examples mentioned in the lecture include:

  • frequency information surviving in substitution and Vigenère-like systems
  • Enigma’s property that a letter never encrypted to itself

These examples motivate the need for a rigorous notion of secrecy: ciphertext should not reveal exploitable information about plaintext.

2. Shannon’s Formalization of Encryption

Claude Shannon is introduced as the person who first formalized encryption rigorously in scientific terms. In modern language, an encryption scheme consists of:

  • KeyGen: a randomized algorithm that outputs a key
  • Enc: an algorithm, possibly randomized, that takes a key and a message and outputs a ciphertext
  • Dec: usually a deterministic algorithm that takes a key and ciphertext and outputs a message

The key space, message space, and ciphertext space are usually sets of bitstrings.

2.1. Syntax

An encryption scheme consists of three algorithms \[ (\mathsf{KeyGen},\mathsf{Enc},\mathsf{Dec}) \] and three spaces \[ \mathcal K,\ \mathcal M,\ \mathcal C. \]

  • \(\mathsf{KeyGen}\): a randomized algorithm outputting a key \[ K \in \mathcal K. \]
  • \(\mathsf{Enc}(K,m)\): a randomized algorithm taking \[ K \in \mathcal K,\quad m \in \mathcal M \] and outputting \[ c \in \mathcal C. \]
  • \(\mathsf{Dec}(K,c)\): a deterministic algorithm taking \[ K \in \mathcal K,\quad c \in \mathcal C \] and outputting \[ m \in \mathcal M. \]

2.2. Randomized Encryption

A notable point in the lecture is that encryption may need to be randomized. If encryption were deterministic, then encrypting the same message twice under the same key would produce the same ciphertext twice, leaking information immediately. This is given as the intuitive reason why randomization matters.

3. Correctness of an Encryption Scheme

3.1. Informal Meaning

If a key is generated honestly and a message is encrypted with that key, then decrypting the ciphertext with the same key should recover the original message.

3.2. Correctness

The scheme is correct if for every message \(m \in \mathcal M\), \[ \Pr[\mathsf{Dec}(K,\mathsf{Enc}(K,m)) = m] = 1, \qquad \text{where } K \leftarrow \mathsf{KeyGen}(). \]

  • The probability is over all random choices made by \(\mathsf{KeyGen}\) and \(\mathsf{Enc}\).
  • So correctness is a perfect correctness condition: decryption must always recover the plaintext.

3.3. Why the Formal Statement Must Be Probabilistic

Because KeyGen and Enc may be randomized, their outputs are random variables. Therefore, correctness cannot simply be stated as an ordinary equation. It must be stated probabilistically: for every message \(m\), over all random choices made by KeyGen and Enc, decryption returns \(m\) with probability \(1\).

This is an important conceptual step: once algorithms are randomized, even basic properties must be phrased as probability-1 statements about random variables.

4. Shannon’s Definition of Perfect Secrecy

4.1. Intuition

A secure encryption scheme should reveal no partial information about the plaintext. The adversary should not learn any property of the message from the ciphertext—not its exact content, not its language, and not any useful predicate about it. The only exception mentioned is message length, or at least an upper bound on it, since ciphertext size itself inevitably leaks some length information.

4.2. Core Definition

Shannon’s idea is that the ciphertext random variable should be independent of the plaintext random variable. Crucially, this must hold for any distribution of messages, not just for English text or some other special source. This is presented as Shannon’s crucial conceptual advance.

4.3. Equivalent Probability Form

Let \(M\) be any random variable supported on the message space \(\mathcal M\), and let \[ C = \mathsf{Enc}(K,M), \qquad \text{where } K \leftarrow \mathsf{KeyGen}(). \]

The scheme is perfectly secret if \(M\) and \(C\) are independent.

Equivalently, for every \(m \in \mathcal M\) and every \(c \in \mathcal C\) with \[ \Pr[\mathsf{Enc}(K,M)=c] > 0, \] it holds that \[ \Pr[M=m \mid \mathsf{Enc}(K,M)=c] = \Pr[M=m]. \]

Interpretation:

  • the right-hand side is the prior probability of the message
  • the left-hand side is the posterior probability after seeing the ciphertext
  • Observing a ciphertext does not change the posterior probability of any message.
  • So the ciphertext leaks no information whatsoever about the plaintext.
  • This is a purely information-theoretic notion: no computational restriction on the adversary appears anywhere.

Perfect secrecy means that seeing the ciphertext does not improve one’s ability to guess the message at all. It is no better than blind guessing.

5. The One-Time Pad

The lecture then introduces the one-time pad as the central example of perfect secrecy in action.

5.1. Definition

For fixed length \(n\):

  • key space \(K = \{0,1\}^n\)
  • message space \(M = \{0,1\}^n\)
  • ciphertext space \(C = \{0,1\}^n\)

Algorithms:

  • KeyGen: choose \(K \leftarrow_{\$} \{0,1\}^n\)
  • Enc: output \(C = K \oplus M\)
  • Dec: output \(M = K \oplus C\)

5.2. Relation to the Vigenère Cipher

The lecturer explicitly points out that the one-time pad is essentially the Vigenère idea over the binary alphabet \(\{0,1\}\), but with one decisive difference: the key is not repeated. The key is as long as the message and is used only once. That is exactly why it is called a one-time pad.

6. Why the One-Time Pad Is Correct

Correctness is immediate: \[ \mathrm{Dec}_K(\mathrm{Enc}_K(M)) = K \oplus (K \oplus M) = (K \oplus K) \oplus M = 0^n \oplus M = M. \]

So decryption simply cancels the key algebraically.

7. Why the One-Time Pad Is Perfectly Secret

7.1. Goal of the Proof

For any message distribution \(M\), and uniformly random key \(K\), show that \(M\) and \(K \oplus M\) are independent. Equivalently, show: \[ \Pr[M=m \mid K\oplus M = c] = \Pr[M=m] \] for all messages \(m\) and ciphertexts \(c\).

7.2. Main Proof Technique

Use Bayes’ rule: \[ \Pr[M=m \mid K\oplus M=c] = \frac{ \Pr[K\oplus M=c \mid M=m]\Pr[M=m] }{ \Pr[K\oplus M=c] }. \]

Now simplify the numerator. Conditioning on \(M=m\) makes the message fixed, so: \[ \Pr[K\oplus M=c \mid M=m] = \Pr[K\oplus m=c]. \]

The event \(K\oplus m=c\) is equivalent to \[ K = c \oplus m. \]

Hence, \[ \Pr[K\oplus M=c \mid M=m] = \Pr[K=c\oplus m]. \]

Since \(K\) is uniform on \(\{0,1\}^n\), and \(c\oplus m\) is just one fixed \(n\)-bit string, \[ \Pr[K=c\oplus m] = 2^{-n}. \]

So the numerator becomes \[ \Pr[K\oplus M=c \mid M=m]\Pr[M=m] = 2^{-n}\Pr[M=m]. \]

Now compute the denominator using the law of total probability: \[ \Pr[K\oplus M=c] = \sum_{m' \in \{0,1\}^n} \Pr[K\oplus M=c \mid M=m']\Pr[M=m']. \]

For each \(m'\), the same argument as above gives \[ \Pr[K\oplus M=c \mid M=m'] = \Pr[K=c\oplus m'] = 2^{-n}. \]

Therefore, \[ \Pr[K\oplus M=c] = \sum_{m' \in \{0,1\}^n} 2^{-n}\Pr[M=m']. \]

Factor out \(2^{-n}\): \[ \Pr[K\oplus M=c] = 2^{-n} \sum_{m' \in \{0,1\}^n} \Pr[M=m']. \]

Since the probabilities over all messages sum to \(1\), \[ \sum_{m' \in \{0,1\}^n}\Pr[M=m'] = 1, \] we get \[ \Pr[K\oplus M=c] = 2^{-n}. \]

Substitute numerator and denominator back into Bayes’ rule: \[ \Pr[M=m \mid K\oplus M=c] = \frac{2^{-n}\Pr[M=m]}{2^{-n}} = \Pr[M=m]. \]

Thus, \[ \Pr[M=m \mid K\oplus M=c] = \Pr[M=m], \] so the ciphertext reveals no information about the message. Therefore, the one-time pad is perfectly secret.

7.3. Intuition of the Proof

The core idea is that for any fixed message \(m\) and any fixed ciphertext \(c\), there is exactly one key \[ K = c \oplus m \] that maps \(m\) to \(c\). Since the key is uniform, every message is equally compatible with the observed ciphertext. Therefore, seeing \(c\) does not change the distribution of \(M\).

8. Why It Is Called “One-Time”

The security proof only works if the key is used at most once. If the same key is reused, the scheme effectively turns into a repeated-key Vigenère-type cipher and becomes insecure. So the one-time pad is perfectly secret only under strict one-time key usage.

9. Practical Drawback of the One-Time Pad

The obvious drawback is that it consumes as much key material as message material. This means the real problem is shifted from secure message transmission to secure key distribution. The lecturer describes this as shifting the burden into an offline phase: keys can be prearranged in advance and later consumed when secure communication becomes necessary.

10. Limitation of Shannon’s Definition

Although perfect secrecy is mathematically elegant and easy to prove for the one-time pad, the lecture points out that Shannon’s definition is not the most convenient one for modern protocol design.

Main limitations mentioned:

  • it talks about independence of random variables rather than explicit adversaries
  • it does not directly model an attacker’s computational abilities
  • it is not the most convenient notion for building larger protocols
  • it does not smoothly generalize to weaker but more efficient security notions
  • It is awkward to work with when designing larger protocols.
  • It does not naturally generalize to weaker notions of security.
  • It is purely information-theoretic and says nothing about efficient adversaries.

10.1. What should a good attack goal look like?

The lecture motivates a minimal attack goal using historical ciphers:

  • Suppose the adversary knows that the ciphertext encrypts one of two messages.
  • Can the adversary tell which one?

This is already enough to break secrecy.

The lecturer also emphasizes that secrecy should protect not only obvious bits of the message, such as the first bit, but any predicate of the message, for example:

  • the first bit,
  • the parity of the message,
  • or any other yes/no property of the plaintext.

So distinguishing between two candidate messages is a natural minimal attack model.

11. Teaser for the Next Lecture

The lecture ends by motivating a shift toward distinguishing attacks. Instead of asking whether an adversary can recover the exact plaintext, one may ask whether the adversary can distinguish which of two possible messages was encrypted. This perspective will be used to refine Shannon’s approach into a more usable modern security framework.

12. Perfect secrecy: Definition 2

12.1. Definition

An encryption scheme is perfectly secret if for all \[ m,m' \in \mathcal M \quad \text{and} \quad c \in \mathcal C, \] it holds that \[ \Pr[\mathsf{Enc}(K,m)=c] = \Pr[\mathsf{Enc}(K,m')=c], \qquad \text{where } K \leftarrow \mathsf{KeyGen}(). \]

12.2. Interpretation

  • Fix a ciphertext \(c\).
  • Then the probability that \(c\) arises from encrypting \(m\) is exactly the same as the probability that \(c\) arises from encrypting \(m'\).
  • Thus, from seeing \(c\), the adversary cannot distinguish whether the plaintext was \(m\) or \(m'\).

12.3. Remark from the lecture

This is already closer to an attack-based view:

  • it says ciphertexts do not help with distinguishing messages,
  • but it still does not explicitly mention an adversary.

13. Perfect secrecy: Definition 3

13.1. Motivation

The next step is to make the adversary explicit.

The lecture stresses that future security notions will restrict the adversary’s computational resources, so we want a form of definition that is compatible with algorithmic adversaries.

13.2. Ciphertext indistinguishability experiment

Let \(\mathcal A\) be a possibly unbounded randomized algorithm, called the adversary.

Define the game:

  1. \(\mathcal A\) outputs two messages \[ m_0,m_1. \]
  2. The challenger samples \[ K \leftarrow \mathsf{KeyGen}(), \qquad b \leftarrow_{\$} \{0,1\}. \]
  3. The challenger computes \[ c^\star \leftarrow \mathsf{Enc}(K,m_b) \] and sends \(c^\star\) to \(\mathcal A\).
  4. The adversary outputs a guess \[ b'. \]
  5. The challenger outputs

    \begin{equation*} \mathsf{IND}_{\mathcal A} = \begin{cases} 1 & \text{if } b'=b,\\ 0 & \text{otherwise.} \end{cases} \end{equation*}

13.3. Baseline success probability

Since \(b\) is uniform, an adversary that just guesses at random already wins with probability \[ \frac{1}{2}. \]

This is the unavoidable baseline attack.

13.4. Definition 3

The scheme is perfectly secret if for every adversary \(\mathcal A\), \[ \Pr[\mathsf{IND}_{\mathcal A}=1] = \frac{1}{2}, \] where the probability is taken over all random choices in the experiment.

13.5. Interpretation

  • The adversary is as powerful as possible: it may even be computationally unbounded.
  • Yet it still cannot do better than random guessing.
  • This formulation is very useful because it explicitly states:
    • what the adversary is allowed to choose,
    • what the adversary gets to see,
    • and what counts as a successful attack.

13.6. Why this game is considered a minimal attack model

The lecture argues:

  • The challenger reveals almost everything except one bit: whether the encrypted message is \(m_0\) or \(m_1\).
  • So the ciphertext only needs to hide that final one-bit choice.
  • If an adversary can break a stronger setting, it should also be able to break this minimal one.

14. Equivalence of the three definitions

14.1. Theorem

Definitions 1, 2, and 3 of perfect secrecy are equivalent.

The lecture proves this in three directions: \[ (2) \Rightarrow (1),\qquad (3) \Rightarrow (2)\ \text{via contraposition},\qquad (1) \Rightarrow (3). \]

15. Proof that \((2) \Rightarrow (1)\)

15.1. Goal

Assume Definition 2. Show Definition 1: for every message distribution \(M\), \[ \Pr[M=m \mid \mathsf{Enc}(K,M)=c] = \Pr[M=m] \] for all \(m,c\) with positive denominator.

15.2. Step 1: apply Bayes’ rule

\[ \Pr[M=m \mid \mathsf{Enc}(K,M)=c] = \frac{\Pr[\mathsf{Enc}(K,M)=c \mid M=m]\Pr[M=m]} {\Pr[\mathsf{Enc}(K,M)=c]}. \]

Conditioning on \(M=m\) removes the randomness of the message variable, so \[ \Pr[\mathsf{Enc}(K,M)=c \mid M=m] = \Pr[\mathsf{Enc}(K,m)=c]. \]

Hence \[ \Pr[M=m \mid \mathsf{Enc}(K,M)=c] = \frac{\Pr[\mathsf{Enc}(K,m)=c]\Pr[M=m]} {\Pr[\mathsf{Enc}(K,M)=c]}. \]

15.3. Step 2: use Definition 2

Fix ciphertext \(c\). Definition 2 says that for every message \(m\), \[ \Pr[\mathsf{Enc}(K,m)=c] \] has the same value.

Call that common value \[ \delta_c. \]

So for all \(m\), \[ \Pr[\mathsf{Enc}(K,m)=c] = \delta_c. \]

15.4. Step 3: compute the denominator

By the law of total probability, \[ \Pr[\mathsf{Enc}(K,M)=c] = \sum_{\bar m \in \mathcal M} \Pr[\mathsf{Enc}(K,M)=c \mid M=\bar m]\Pr[M=\bar m]. \]

Again, conditioning on \(M=\bar m\) yields \[ \Pr[\mathsf{Enc}(K,M)=c \mid M=\bar m] = \Pr[\mathsf{Enc}(K,\bar m)=c] = \delta_c. \]

Therefore \[ \Pr[\mathsf{Enc}(K,M)=c] = \sum_{\bar m \in \mathcal M} \delta_c \Pr[M=\bar m] = \delta_c \sum_{\bar m \in \mathcal M}\Pr[M=\bar m] = \delta_c. \]

15.5. Step 4: conclude

Substituting into Bayes’ rule, \[ \Pr[M=m \mid \mathsf{Enc}(K,M)=c] = \frac{\delta_c \Pr[M=m]}{\delta_c} = \Pr[M=m]. \]

Thus Definition 1 holds.

16. Proof that \((3) \Rightarrow (2)\) via contraposition

16.1. Strategy

Instead of proving \[ (3)\Rightarrow(2), \] prove \[ \neg(2)\Rightarrow \neg(3). \]

So assume Definition 2 fails.

16.2. Negation of Definition 2

Then there exist \[ m,m' \in \mathcal M,\quad c \in \mathcal C \] such that \[ \Pr[\mathsf{Enc}(K,m)=c] \neq \Pr[\mathsf{Enc}(K,m')=c]. \]

Without loss of generality, rename messages so that \[ \Pr[\mathsf{Enc}(K,m_0)=c] > \Pr[\mathsf{Enc}(K,m_1)=c]. \]

16.3. Construct the adversary

Define adversary \(\mathcal A\) as follows:

  • send \[ m_0,m_1 \] to the challenger;
  • receive \(c^\star\);
  • if \[ c^\star = c, \] output \[ b' = 0; \]
  • otherwise, output a uniformly random bit.

This adversary uses the special ciphertext \(c\) witnessing the failure of Definition 2.

16.4. Why this works

Let \[ p = \Pr[c^\star = c \mid b=0] = \Pr[\mathsf{Enc}(K,m_0)=c], \] and \[ p' = \Pr[c^\star = c \mid b=1] = \Pr[\mathsf{Enc}(K,m_1)=c]. \]

By assumption, \[ p > p'. \]

Now analyze the success probability.

16.4.1. Case \(b=0\)

If \(c^\star=c\), the adversary outputs \(0\), hence wins with probability \(1\). If \(c^\star \neq c\), it guesses randomly, hence wins with probability \(1/2\).

So \[ \Pr[\mathsf{IND}_{\mathcal A}=1 \mid b=0] = 1 \cdot p + \frac12(1-p) = \frac12 + \frac12 p. \]

16.4.2. Case \(b=1\)

If \(c^\star=c\), the adversary still outputs \(0\), so it loses with probability \(1\), i.e. wins with probability \(0\). If \(c^\star \neq c\), it guesses randomly, so wins with probability \(1/2\).

Thus \[ \Pr[\mathsf{IND}_{\mathcal A}=1 \mid b=1] = 0 \cdot p' + \frac12(1-p') = \frac12 - \frac12 p'. \]

16.4.3. Combine the two cases

Since \(b\) is uniform,

\begin{equation*} \Pr[\mathsf{IND}_{\mathcal A}=1] = \frac12 \Pr[\mathsf{IND}_{\mathcal A}=1 \mid b=0] + \frac12 \Pr[\mathsf{IND}_{\mathcal A}=1 \mid b=1]. \end{equation*}

Substituting,

\begin{equation*} \Pr[\mathsf{IND}_{\mathcal A}=1] = \frac12 \left(\frac12 + \frac12 p\right) + \frac12 \left(\frac12 - \frac12 p'\right) = \frac12 + \frac14(p-p'). \end{equation*}

Since \(p>p'\), \[ \Pr[\mathsf{IND}_{\mathcal A}=1] > \frac12. \]

So there exists an adversary that does better than random guessing. Hence Definition 3 fails.

Therefore, \[ (3)\Rightarrow(2). \]

17. Proof that \((1) \Rightarrow (3)\)

17.1. Setup

Assume Definition 1. Take any adversary \(\mathcal A\). We must show \[ \Pr[\mathsf{IND}_{\mathcal A}=1] = \frac12. \]

The lecture simplifies first by assuming \(\mathcal A\) is deterministic. This is only for convenience; the argument extends to randomized adversaries by absorbing the adversary’s random coins into the probability distribution.

17.2. Induced message distribution

If \(\mathcal A\) is deterministic, it always outputs the same two challenge messages \[ m_0,m_1. \]

Now define a message distribution \(M\) by \[ \Pr[M=m_0]=\frac12,\qquad \Pr[M=m_1]=\frac12, \] and \[ \Pr[M=\tilde m]=0 \quad\text{for all } \tilde m \notin \{m_0,m_1\}. \]

Then the challenger’s procedure “pick \(b \leftarrow \{0,1\}\) and encrypt \(m_b\)” is equivalent to “sample \(M\) from this distribution and encrypt \(M\)”.

So \[ c^\star = \mathsf{Enc}(K,M). \]

17.3. View the adversary’s guess as a function of the ciphertext

Since \(\mathcal A\) is deterministic, after receiving \(c^\star\) it outputs some bit \[ b' = b'(c^\star). \]

Let \[ m(c^\star) \] denote the message corresponding to this guess:

  • \(m(c^\star)=m_0\) if \(b'(c^\star)=0\),
  • \(m(c^\star)=m_1\) if \(b'(c^\star)=1\).

Then the event that the adversary wins is exactly \[ \{\mathsf{IND}_{\mathcal A}=1\} = \{M = m(c^\star)\}. \]

17.4. Compute the winning probability

\[ \Pr[\mathsf{IND}_{\mathcal A}=1] = \Pr[M = m(c^\star)]. \]

Apply the law of total probability over all ciphertexts \(c\): \[ \Pr[M = m(c^\star)] = \sum_{c \in \mathcal C} \Pr[M=m(c) \mid c^\star=c]\Pr[c^\star=c]. \]

By Definition 1, ciphertext and message are independent, so for every \(c\), \[ \Pr[M=m(c) \mid c^\star=c] = \Pr[M=m(c)]. \]

But under the distribution \(M\), both \(m_0\) and \(m_1\) have probability \(1/2\), so in either case \[ \Pr[M=m(c)] = \frac12. \]

Therefore, \[ \Pr[\mathsf{IND}_{\mathcal A}=1] = \sum_{c \in \mathcal C} \frac12 \Pr[c^\star=c] = \frac12 \sum_{c \in \mathcal C}\Pr[c^\star=c] = \frac12. \]

Hence no adversary can beat random guessing, and Definition 3 holds.

18. Shannon’s theorem: short keys are impossible for perfect secrecy

18.1. Question

OTP has perfect secrecy, but its key is as long as the message. Can one do better and still remain perfectly secret?

18.2. Theorem

Let \[ (\mathsf{KeyGen},\mathsf{Enc},\mathsf{Dec}) \] be a perfectly secret encryption scheme with key space \(\mathcal K\) and message space \(\mathcal M\). Then \[ \left| \mathcal K \right| \ge \left| \mathcal M \right|. \]

So perfectly secret encryption requires the key space to be at least as large as the message space.

18.3. Proof idea from the lecture

The proof is by contraposition.

Assume \[ \left| \mathcal K \right| < \left| \mathcal M \right|. \]

Show that the scheme cannot be perfectly secret.

The strategy is to find two messages \(m_0,m_1\) and a ciphertext \(c\) such that \[ \Pr[\mathsf{Enc}(K,m_0)=c] > 0 \qquad\text{but}\qquad \Pr[\mathsf{Enc}(K,m_1)=c] = 0. \]

This directly contradicts Definition 2, which requires \[ \Pr[\mathsf{Enc}(K,m_0)=c] = \Pr[\mathsf{Enc}(K,m_1)=c] \] for all \(m_0,m_1,c\).

So if the key space is smaller than the message space, perfect secrecy is impossible.

18.4. Proof

We prove the contrapositive.

Assume \[ \left| \mathcal K \right| < \left| \mathcal M \right|. \] We show that the scheme cannot be perfectly secret.

Fix any ciphertext \(c \in \mathcal C\). For a message \(m \in \mathcal M\), consider the set \[ S_c(m) := \{\, K \in \mathcal K \mid \mathsf{Enc}(K,m) = c \,\}. \]

Since decryption must be correct, for a fixed key \(K\) and fixed ciphertext \(c\), there can be at most one message \(m\) such that \[ \mathsf{Enc}(K,m) = c. \]

Indeed, suppose there were two distinct messages \(m \neq m'\) with \[ \mathsf{Enc}(K,m)=c \qquad\text{and}\qquad \mathsf{Enc}(K,m')=c. \] Then correctness would imply \[ m = \mathsf{Dec}(K,c) = m', \] a contradiction.

Therefore, for fixed \(c\), the sets \[ S_c(m) \subseteq \mathcal K \] are pairwise disjoint as \(m\) ranges over \(\mathcal M\).

Now there are only \(|\mathcal K|\) keys, but \(|\mathcal M| > |\mathcal K|\) messages. Since the sets \(S_c(m)\) are pairwise disjoint subsets of \(\mathcal K\), not all of them can be nonempty.

Hence, for every fixed ciphertext \(c\), there exists at least one message \(m_c \in \mathcal M\) such that \[ S_c(m_c)=\varnothing. \]

Equivalently, \[ \Pr[\mathsf{Enc}(K,m_c)=c]=0. \]

Now choose any message \(m\) such that \[ \Pr[\mathsf{Enc}(K,m)=c] > 0. \] (If no such message existed, then \(c\) would simply never occur as a ciphertext and can be ignored.)

Then we have found two messages \(m\) and \(m_c\) such that \[ \Pr[\mathsf{Enc}(K,m)=c] > 0 \qquad\text{but}\qquad \Pr[\mathsf{Enc}(K,m_c)=c]=0. \]

But Definition 2 of perfect secrecy requires that for all messages \(m,m' \in \mathcal M\) and all ciphertexts \(c \in \mathcal C\), \[ \Pr[\mathsf{Enc}(K,m)=c] = \Pr[\mathsf{Enc}(K,m')=c]. \]

This is violated.

Therefore the scheme is not perfectly secret.

So we have shown the contrapositive: \[ \left| \mathcal K \right| < \left| \mathcal M \right| \;\Longrightarrow\; \text{the scheme is not perfectly secret}. \]

Hence, if the scheme is perfectly secret, then necessarily \[ \left| \mathcal K \right| \ge \left| \mathcal M \right|. \]

\(\square\)

18.5. Intuition

  • A perfectly secret scheme must make every ciphertext look equally plausible for every message.
  • If there are too few keys relative to messages, there are simply not enough different encryptions available to maintain this perfect symmetry.
  • Therefore perfect secrecy necessarily requires “large key material”.

19. Additional remarks emphasized in the lecture

19.1. Perfect secrecy is information-theoretic

  • It does not rely on hardness assumptions.
  • It is secure even against computationally unbounded adversaries.
  • But precisely because it is so strong, it forces severe efficiency limitations.

19.2. Why Definition 3 is especially useful

The game-based definition is the most operational one:

  • it explicitly names the adversary,
  • it explicitly specifies the adversary’s resources,
  • it explicitly states the attack goal,
  • and it will later generalize naturally to security notions against efficient adversaries.

19.3. Side remark: full key exposure destroys secrecy

The lecture briefly notes:

  • if the entire key is known to the adversary, then secrecy is impossible in the ordinary model;
  • there are more advanced models, such as incompressibility-style settings, where one may still recover limited guarantees under storage bounds, but this is outside the scope of the lecture.

20. Final takeaway

  • Encryption schemes are defined by \((\mathsf{KeyGen},\mathsf{Enc},\mathsf{Dec})\) and must satisfy correctness.
  • Shannon’s Definition 1 says ciphertext and message are independent.
  • The one-time pad satisfies perfect secrecy.
  • Reusing the OTP key destroys the argument.
  • Definition 2 reformulates perfect secrecy as equality of ciphertext distributions across messages.
  • Definition 3 reformulates it as a game: no adversary can distinguish between encryptions of two chosen messages with success better than \[ \frac12. \]
  • The three definitions are equivalent.
  • Perfect secrecy is extremely strong but expensive: by Shannon’s theorem, perfectly secret encryption needs keys at least as large as the message space.

Author: Lowtroo

Created on: 2026-04-21 Tue 14:00

Powered by Emacs 29.3 (Org mode 9.6.15)