{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sample_quiz6_solution

sample_quiz6_solution - Math 187 Prof Garsia typed by Alex...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Math 187 Prof. Garsia typed by Alex Brik 05-18-2010 SAMPLE QUIZ 6 solution. 1. Solution : m1: HELP m2: COME m3: FOOD m4: FIRE m5: LOST a) need at least 5 keys and 5 ciphertexts. Keys k1, k2, k3, k4, k5 M : m1 m2 m3 m4 m5 k1 1 2 3 4 5 k2 2 3 4 5 1 k3 3 4 5 1 2 k4 4 5 1 2 3 k5 5 1 2 3 4 The entry ( i; j ) of the matrix M provides the encoding of m j with the key k i . Let c 1 = m 1 , c 2 = m 2 , ..., c 5 = m 5 . Thus E k i ( m j ) = c M ( i;j ) Note that all keys are equally likely. For each pair ( m i ; c j ) there is a unique key k s s.t. E k s ( m i ) = c j . b) P ( c 1 ) = P ( c 2 ) = P ( c 3 ) = P ( c 4 ) = P ( c 5 ) = 1 5 c) We will be chosing keys from teh collection of all 4 letter sequences. Hence every key is equally likely. For every message m and a four letter ciphertext c there is a unique key k s.t. E k ( m ) = c Thus the perfect secrecy is achieved. 2. 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
a. k 1 (0 ; 0) ! (0 ; 0) (0 ; 1) ! (0 ; 1) (1 ; 0) ! (1 ; 0) (1 ; 1) ! (1 ; 1) k 2 (0 ; 0) ! (0 ; 0) (0 ; 1) ! (1 ; 0) (1 ; 0) ! (0 ; 1) (1 ; 1) ! (1 ; 1) k 3 (0 ; 0) ! (0 ; 0) (0 ; 1) ! (0 ; 1) (1 ; 0) ! (1 ; 1) (1 ; 1) ! (1 ; 0) k 4 (0 ; 0) ! (0 ; 0) (0 ; 1) ! (1 ; 0) (1 ; 0) ! (1 ; 1) (1 ; 1) ! (0 ; 1) H = 4 ° 1 4 ° 2 = 2 b.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern