Presentation is loading. Please wait.

Presentation is loading. Please wait.

Announcements: HW3 updated. Due next Thursday HW3 updated. Due next Thursday Written quiz today Written quiz today Computer quiz next Friday on breaking.

Similar presentations


Presentation on theme: "Announcements: HW3 updated. Due next Thursday HW3 updated. Due next Thursday Written quiz today Written quiz today Computer quiz next Friday on breaking."— Presentation transcript:

1 Announcements: HW3 updated. Due next Thursday HW3 updated. Due next Thursday Written quiz today Written quiz today Computer quiz next Friday on breaking codes from chapter 2 Computer quiz next Friday on breaking codes from chapter 2Today: Three-pass protocol Three-pass protocol Quiz QuizQuestions? DTTF/NB479: DszquphsbqizDay 12

2 Wrapping up Fermat and Euler We skipped the proof of Fermat’s Little Theorem in the text. Be sure to read it Be sure to read it You are also prepared to read the rest of chapter 3 at your own pace.

3 Three-pass protocol How can Alice get a secret message to Bob without an established key? Can do it with locks. First 2 volunteers get to do the live demo

4 Three-pass protocol Situation: Alice wants to get a short message to Bob, but they don’t have an established key to transmit it. Can do with locks:

5 Three-pass protocol Situation: Alice wants to get a short message to Bob, but they don’t have an established key to transmit it. Can do with locks:

6 Three-pass protocol Situation: Alice wants to get a short message to Bob, but they don’t have an established key to transmit it. Can do with locks:

7 Three-pass protocol Situation: Alice wants to get a short message to Bob, but they don’t have an established key to transmit it. Can do with locks: Note: it’s always secured by one of their locks

8 Now with “Fermat’s locks” K: the secret message p: a public prime number > K The two locks: a: Alice’s random #, gcd(a,p-1)=1 a: Alice’s random #, gcd(a,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 To unlock their locks: a -1 mod (p-1) a -1 mod (p-1) b -1 mod (p-1) b -1 mod (p-1)

9 Now with “Fermat’s locks” K: the secret message p: a public prime number > K The two locks: a: Alice’s random #, gcd(a,p-1)=1 a: Alice’s random #, gcd(a,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 To unlock their locks: a -1 mod (p-1) a -1 mod (p-1) b -1 mod (p-1) b -1 mod (p-1) Three-pass protocol: Alice computes K a (mod p) and sends to Bob Bob computes (K a ) b (mod p) and sends it back Alice computes ((K a ) b ) inv(a) (mod p) and sends it back Bob computes (((K a ) b ) inv(a) ) inv(b) (mod p) and reads K

10 Now with “Fermat’s locks” K: the secret message p: a public prime number > K The two locks: a: Alice’s random #, gcd(a,p-1)=1 a: Alice’s random #, gcd(a,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 b: Bob’s random #, gcd(b,p-1)=1 To unlock their locks: a -1 mod (p-1) a -1 mod (p-1) b -1 mod (p-1) b -1 mod (p-1) Three-pass protocol: Alice computes K a (mod p) and sends to Bob Bob computes (K a ) b (mod p) and sends it back Alice computes ((K a ) b ) inv(a) (mod p) and sends it back Bob computes (((K a ) b ) inv(a) ) inv(b) (mod p) and reads K Toy example: 36 17 (mod 59) = 12 12 21 (mod 59) = 45 45 41 (mod 59) = 48 48 47 (mod 59) = 36 36 59 17 21 41 47 Why’s it work?

11 Recall the basic principle When dealing with numbers mod n, we can deal with their exponents mod _____ Only look at once you’ve thought about this… Given integers a and b, Given integers a and b, Since aa -1 =bb -1 =1(mod p-1) Since aa -1 =bb -1 =1(mod p-1) What’s K^(aba -1 b -1 ) (mod p)? What’s K^(aba -1 b -1 ) (mod p)?

12 Final thought Trappe and Washington say that it’s vulnerable to an “intruder-in-the-middle” attack. Think about this…

13 Some levity before the exam http://xkcd.com/c177.html Thanks to Nathan for the link!

14 Quiz Closed book and computer Get out note sheet: 1 handwritten sheet of 8.5 x 11 paper, one side only. 1 handwritten sheet of 8.5 x 11 paper, one side only.


Download ppt "Announcements: HW3 updated. Due next Thursday HW3 updated. Due next Thursday Written quiz today Written quiz today Computer quiz next Friday on breaking."

Similar presentations


Ads by Google