• No results found

COMP443-2shannon-screen.pdf

N/A
N/A
Protected

Academic year: 2020

Share "COMP443-2shannon-screen.pdf"

Copied!
23
0
0

Loading.... (view fulltext now)

Full text

(1)

Modern Cryptography

COMP 443 / 543

Chapter 2

Alptekin K¨up¸c¨u

Computer Science and Engineering Ko¸c University

(2)

Perfect Secrecy

Provable security

Message perfectly hidden

Secure against even a computationally unbounded adversary (as opposed to an efficient =polynomial-time one)

Several equivalent definitions

One-Time Pad

Shannon’s results & Limitations

(3)

Clarifications

Randomized vs. deterministic encryption

Randomized vs. deterministic decryption

Probability space (redefine correctness)

Perfectly correct encryption

Key-message independence

(4)

Definition 1

Adversary’s knowledge about probability distribution of the message space should not change.

a posteriori =a priori

Perfect secrecyworks for every probability distribution over M.

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

quantifications ??

(5)

Definition 2

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

Proveequivalence to Definition 1using Bayes Theorem

(6)

Definition 2

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

Proveequivalence to Definition 1using Bayes Theorem

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

(7)

Definition 3

Perfect indistinguishabilityrequires that the probability distribution of the ciphertexts is independent of the plaintext.

LetC(m) denote the ciphertext distribution when the plaintext is m. Perfect indistinguishability means for any two messagesm0 and

m1 we haveC(m0) =C(m1)

Pr[C =c|M =m0] =Pr[C =c|M =m1]

Equivalence to Definition 2 ??

⇒immediately apply definition 2 to m0 andm1

⇐UsePr[C =c] = Σm∈MPr[C =c|M =m]∗Pr[M =m] and the

(8)

Definition 3

Perfect indistinguishabilityrequires that the probability distribution of the ciphertexts is independent of the plaintext.

LetC(m) denote the ciphertext distribution when the plaintext is m. Perfect indistinguishability means for any two messagesm0 and

m1 we haveC(m0) =C(m1)

Pr[C =c|M =m0] =Pr[C =c|M =m1]

Equivalenceto Definition 2 ??

⇒immediately apply definition 2 to m0 andm1

⇐UsePr[C =c] = Σm∈MPr[C =c|M =m]∗Pr[M =m] and the

fact thatPr[C =c|M =m] is a constant according to Definition 3

(9)

Definition 3

Perfect indistinguishabilityrequires that the probability distribution of the ciphertexts is independent of the plaintext.

LetC(m) denote the ciphertext distribution when the plaintext is m. Perfect indistinguishability means for any two messagesm0 and

m1 we haveC(m0) =C(m1)

Pr[C =c|M =m0] =Pr[C =c|M =m1]

Equivalenceto Definition 2 ??

⇒immediately apply definition 2 tom0 andm1

⇐UsePr[C =c] = Σm∈MPr[C =c|M =m]∗Pr[M =m] and the

(10)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sends m0 andm1 3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary 5 Adversary guesses bit b0

Adversary wins ifb =b0

Pr[Adversary AwinsPrivKA,eavΠ] =??

(11)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense ??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sendsm0 andm1

3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary 5 Adversary guesses bit b0

Adversary wins ifb =b0

(12)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense ??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sendsm0 andm1 3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary 5 Adversary guesses bit b0

Adversary wins ifb =b0

Pr[Adversary AwinsPrivKA,eavΠ] =??

(13)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense ??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sendsm0 andm1 3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary

5 Adversary guesses bit b0 Adversary wins ifb =b0

(14)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense ??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sendsm0 andm1 3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary 5 Adversary guesses bitb0

Adversary wins ifb =b0

Pr[Adversary AwinsPrivKA,eavΠ] =??

(15)

Definition 4

Adversarial indistinguishabilityrequires that no

“computationally unbounded” adversary can distinguish at the end of a game (= experiment).

Game namePrivKeav makes sense ??

Parameters: protocol Π and adversaryA PrivKA,eavΠ game:

1 Challenger generates keyk

2 Adversary sendsm0 andm1 3 Challenger flips bit b← {0,1}

4 Challenger encryptsc ←Enck(mb), sendsc to Adversary 5 Adversary guesses bitb0

Adversary wins ifb =b0

(16)

One-Time Pad (Vernam’s Cipher)

Bitwise XOR⊕

M=K=C={0,1}t

Key generation picks uniformly randomstring k

Encryptionc =m⊕k Decryption m0 =c ⊕k Correctness ??

Security intuition: ∀c ∀m ∃k s.t. c =m⊕k Proof (using Definition 3: perfect indistinguishability) ??

Pr[C =c|M =m] =Pr[c =m⊕K] =Pr[K =m⊕c] = 2−t

(17)

One-Time Pad (Vernam’s Cipher)

Bitwise XOR⊕

M=K=C={0,1}t

Key generation picks uniformly randomstring k

Encryptionc =m⊕k Decryption m0 =c ⊕k Correctness ??

Security intuition: ∀c ∀m ∃k s.t. c =m⊕k Proof(using Definition 3: perfect indistinguishability) ??

(18)

One-Time Pad (Vernam’s Cipher)

Bitwise XOR⊕

M=K=C={0,1}t

Key generation picks uniformly randomstring k

Encryptionc =m⊕k Decryption m0 =c ⊕k Correctness ??

Security intuition: ∀c ∀m ∃k s.t. c =m⊕k Proof (using Definition 3: perfect indistinguishability) ??

Pr[C =c|M =m] =Pr[c =m⊕K] =Pr[K =m⊕c] = 2−t

(19)

Limitations

Key as long as message

Secure only if usedonce

Any perfectly secure encryption must have key space at least as big as the message space.

Proof ?? [Hint: Employ definition 1]

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

(20)

Limitations

Key as long as message

Secure only if usedonce

Any perfectly secure encryption must have key space at least as big as the message space.

Proof ?? [Hint: Employ definition 1]

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

What about decryption?

(21)

Shannon’s Theorem

An encryption scheme with|M|=|K|=|C|is perfectly secure iff 1 Key is chosen uniformly randomly

2 ∀c ∀m ∃k s.t. cEnc

k(m)

Conclusions

Encryption can be secure against even computationally-unbounded adversaries

(22)

Shannon’s Theorem

An encryption scheme with|M|=|K|=|C|is perfectly secure iff 1 Key is chosen uniformly randomly

2 ∀c ∀m ∃k s.t. cEnc

k(m)

Conclusions

Encryption can be secure against even computationally-unbounded adversaries

Key space must be as big as message space (so ??)

(23)

Final Words

Read and understand the proof of Shannon’s theorem Solve end-of-chapter exercises 2.2 - 2.10 and 2.12 - 2.13

Some may appear in a quiz

Finish reading about mathematical background Read chapter 3

First read until (excluding) 3.3

When done, read until (excluding) 3.6.3

References

Related documents

A policy in which all of the fixed assets of a firm are financed with long-term capital, but some of the firm’s permanent current assets are financed with short-term

The principle hypotheses for this work include (1) if an automation system has been virtually prototyped and commissioned using the component-based approach in a virtual

Quality: We measure quality (Q in our formal model) by observing the average number of citations received by a scientist for all the papers he or she published in a given

4.1 The Select Committee is asked to consider the proposed development of the Customer Service Function, the recommended service delivery option and the investment required8. It

• Follow up with your employer each reporting period to ensure your hours are reported on a regular basis?. • Discuss your progress with

Proprietary Schools are referred to as those classified nonpublic, which sell or offer for sale mostly post- secondary instruction which leads to an occupation..

The positive and signi…cant coe¢ cient on the post shipment dummy in the fourth column implies that prices charged in post shipment term transactions are higher than those charged

How the study was conducted The researchers used a 3-D global atmospheric download to predict how the radioactive material download move over earth and a health-effects model to see