Cryptography / spring 2012

Exercise 5, week 7

 

 

 

1.      Modify the digital signature techniques represented on page 100 in cases 1 and 2 to enable the receiver to verify the signature.

 

 

2.      Modify the digital signature techniques represented on page 100 in case 3 to avoid triple encryption of the entire message.

 

 

3.    Consider the following hash function. Messages are in the form of decimal

       numbers M = (a1, a2, …, ak). The hash value h is calculated as

 

                        (a1+ a2 + …+ ak) mod n

 

       for some predefined value n. Does this hash function satisfy any of the

       requirements for a hash function?

 

 

4.    Consider the list of names: Matti, Pekka, John, Charles, Juha, Eetu, Kim, Sari, Mary, Saara. Define hash function

 

h(c1 c2 cn) = (asc(c1) + asc(c2) + … + asc(cn)) mod 10,

 

where asc(ci) is the Ascii code of the i’th letter ci of the name. How many collisions do you find?

 

 

5.    For SHA-512, show the equation for the values W16, W17, W18, W19.

 

 

6.    Needham-Schroeder’s authentication protocol uses authentication centre X and is working as follows:

 

a)    A -> X:   RAIAIB

b)    X -> A:   EKAX( RAIBKABEKBX(IAKAB))

c)    A -> B:   EKBX(IAKAB)◦ EKAB(R’A)

d)    B -> A:   EKAB(R’A - 1) ◦ RB

e)    A -> B:   EKAB(RB - 1)

 

Deduce how the protocol is working.