Assignment 3

Due Tuesday, July 10, in class

Recommended reading (from Stallings, unless otherwise stated):

  1. (20 points) Write a program that takes two integers as input and outputs their greatest common divisor.

    Notes:

    Problems 2-5 should be submitted in class, on paper.

  2. (5 points) Stallings, Problem 7.2.
  3. (15 points) Problem 7.10. Note: On part (a), the problem should read: Suppose that m = qn + r with q a positive integer, r a nonnegative integer, and 0 <= r < n. Show that m/2 > r.
  4. (10 points) Problem 3.12.
  5. (10 points) Recall from class that Deep Crack can recover a DES key in an average of 4 days, by checking roughly 92 billion keys per second. You ask a friend how to make DES more secure, and your friend suggests making one of the following two changes:
    1. Increase the number of rounds from 16 to 32.
    2. Increase the number of key bits used from 56 to 64.
    How long would it take Deep Crack to attack each modified version? (For extra credit, you can discuss the effects of these changes on differential and linear cryptanalysis.)

Course home page