Skip to main content

Perfect Secrecy

EnglishAlso available in:中文
2 min337 words

When Ralph C. Merkle proposed “Secure Communications Over Insecure Channels” in 1978 (https://dl.acm.org/doi/10.1145/359460.359473), we began to consider the existence of adversaries eavesdropping on our communication channels over the internet, and we started thinking about how to obscure our data

Scenario for Security

In a traditional communication channel, there are three main components: the sender, the receiver, and the adversary. The sender uses a shared key to encrypt the message mm and sends the ciphertext cc to the receiver through an insecure channel.

For simplicity, we are not considering the process of key negotiation; instead, we assume that the receiver already possesses the shared key and can decrypt the ciphertext cc to recover the original message mm.

While the ciphertext cc is transmitted over the internet, an adversary AA exists who can eavesdrop on the channel, observe the ciphertext, and intercept a copy of it for their device.

Communication.drawio

Intuition

A scheme Π\Pi achieves perfect secrecy if observing the ciphertext cc has no effect on AA‘s knowledge of the message mm that was sent. This means that cc is useless for obtaining mm and reveals nothing about mm

Definition

An encryption scheme Π=(Gen,Enc,Dec)\Pi = (Gen, Enc, Dec) with message space MM is perfectly secret if for every probability distribution over MM, every message mMm \in M and every ciphertext cCc \in C for Pr[C=c]>0Pr[C = c] > 0:

Pr[M=mC=c]=Pr[M=m]Pr[M = m|C = c] = Pr[M = m]

If the ciphertext cc is useful, it would hold that 

Pr[M=mC=c]>Pr[M=m]Pr[M=m|C=c]>Pr[M=m]

This is because an adversary could obtain some ciphertexts and is assumed to already know the distribution of the message space MM, denoted as dist(M)dist(M).

The adversary then tries to guess a specific message mm from the message space MM. However, if having access to the ciphertext space CC provides no additional advantage for the adversary in guessing this specific message, then the distribution Pr[M=mC=c]Pr[M=m|C=c] would be equivalent to Pr[M=m]Pr[M=m].

This implies that the message space MM and the ciphertext space CC are independent. This concept is known as Perfect Secrecy.