Perfectly Secret Encryption
Probability Distribution
Notation
- denotes the set of all possible keys (key space)
- denotes the set of all possible ciphertexts (ciphertext space)
- denotes the set of all possible messages
- denotes the message, where
- denotes the key, where
- defines a probability distribution for , where
Assumption
Random variables and are independent.
Perfect Secrecy
Definition
An encryption scheme (, , ) with message space is perfectly secret if for every probability distribution over , every message and every ciphertext for which :
Or
The ciphertext should not leak any additional information about the plaintext regardless of any prior information the attacker has about the plaintext.
Adversarial Indistinguishability Experiment
Let be an encryption scheme with message space .
Let be an adversary.
The experiment can be defined as follows:
- outputs a pair of messages
- A key is generated by , and a uniform bit is chosen. Ciphertext is given to . The is a challenge ciphertext
- outputs a bit
- The output of the experiment is defined to be if , otherwise . and succeeds, if the output of the experiment is .
The perfect indistinguishability is defined as:
Shanon’s Theorem
Let be an encryption scheme with message space , for which .
The scheme is perfectly secret if and only if:
One-Time Pad (OTP)
Process
- : Choose a uniform key
Limitation
The key can not be reused. And the key management is difficult.
If the key is reused, a known-plaintext attack will happen:
And the adversary knows , then
Or
Which leaks information about , so it is not perfectly secret, the difference between two plaintexts can be identified, and frequency analysis could also be applied.