



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Cryptography; Subject: CS-Computer Sciences; University: Purdue University - Main Campus; Term: Fall 2001;
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




CS 555 Midterm Exam Fall ’
Name (print please):
Question 1. (12 points) Consider the following protocol, in which a symmetric (i.e., single- key) cryptosystem is used by both parties for the generation of a session key known to both of them for the purpose of exchanging messages MA and MB. Assume the cryptosystem used is commutative.
Is the protocol safe from from Mallory? Justify your answer (i.e., if your answer is “yes” then briefly explain why, and if it is “no” then describe an attack through which Mallory manages to obtain MA and MB ). [Write your answer in the space below.]
Question 2. (10 points) Bob wants to buy from Alice one of two possible movies M 1 , M 2. Bob is not supposed to be able to control which one of the two movies he gets, and Alice is not supposed to ever know which of the two movies Bob got. (How Bob pays Alice for the Mi he gets is of no concern to us here.) Alice and Bob could try to cheat if they can avoid detection of their cheating. Consider the following two protocols.
Question 3. (9 points) An independent set in an undirected graph G is a subset of the vertices such that there is no edge of G between vertices of that subset. The size of the independent set is the number of vertices in it. Suppose that an n-vertex graph G is known to both Peggy and to Victor. Peggy also knows an independent set of size k in the graph G. Peggy wants to convince Victor that she knows such an independent set, but without making it any easier for Victor to compute such an independent set (i.e., she wants to convince him in a zero-knowledge fashion). They run 100 times the following protocol, after which Peggy is considered to have succeeded in convincing Victor only if she succeeded in every one of those 100 rounds:
Question 5. (9 points) In class we gave a protocol that allows n persons (call them p 1 , p 2 ,... , pn) to compute their average salary without any of them revealing her salary (recall that the protocol starts and ends with p 1 , who then announces the result to the others). Mark as True or False each of the following statements about this protocol.
Question 6. (33 points) Mark as True or False each of the following statements.
Question 7. (15 points) Complete each of the following.