Docsity

Problems for Homework 8 - Cryptography Computer Network Security | ECE 646, Assignments of Cryptography and System Security

Toggle sidebar
bg1
ECE646 Cryptography and Computer Network-Security Fall 2006
HW # 8
Due Date: Tuesday, November 21th, 2006, 7:20 PM
at the beginning of class
Project track: You only have to solve the problems for all tracks. Please indicate that you
are in the project track. If you have time to solve problems of the exam track you may choose
either the problems for programmers or the problems for analysts. Both are of equal weight. You
can obtain up to 50% of points for each problem out of one of these options.
Exam track: You have to solve the problems for all tracks too and choose one of the two
options, problems for programmers or problems for analysts. If you have time to solve problems
belonging to the second option, you can obtain up to 50% of points for each problem from this
option. Please, indicate which option was your primary choice.
Problems (all tracks):
1. Compute the following exponentiations xemod mapplying the square-and-multiply algorithm
(also called left-to-right binary exponentiation):
(a) x= 5, e = 83, m = 101
(b) x= 7, e = 199, m = 101
After every iteration step, show the exponent of the intermediate result in binary notation.
2. As we saw in the lecture, the modulus of RSA has been enlarged over the years in order
to thwart the dramatically improved attacks. As one would assume, public- key algorithms
are becoming slower as the word length increases. We will study the relation between word
length and performance in this problem. The performance of RSA, and of almost any other
public-key algorithm, is dependent on how fast modulo exponentiation with large numbers
can be performed.
Assume that one modulo multiplication or squaring with kbit numbers takes c·k2clock
cycles, where c is a constant. How much slower is RSA encryption/decryption with 1024 bits
compared to RSA with 512 on average. Only consider the encryption/decryption itself with
an exponent of full length and the square-and-multiply algorithm.
pf3

Partial preview of the text

Download Problems for Homework 8 - Cryptography Computer Network Security | ECE 646 and more Assignments Cryptography and System Security in PDF only on Docsity!

ECE646 Cryptography and Computer Network-Security Fall 2006

HW # 8

Due Date: Tuesday, November 21th, 2006, 7:20 PM

at the beginning of class

Project track: You only have to solve the problems for all tracks. Please indicate that you are in the project track. If you have time to solve problems of the exam track you may choose either the problems for programmers or the problems for analysts. Both are of equal weight. You can obtain up to 50% of points for each problem out of one of these options. Exam track: You have to solve the problems for all tracks too and choose one of the two options, problems for programmers or problems for analysts. If you have time to solve problems belonging to the second option, you can obtain up to 50% of points for each problem from this option. Please, indicate which option was your primary choice.

Problems (all tracks):

  1. Compute the following exponentiations xe^ mod m applying the square-and-multiply algorithm (also called left-to-right binary exponentiation):

(a) x = 5, e = 83, m = 101 (b) x = 7, e = 199, m = 101

After every iteration step, show the exponent of the intermediate result in binary notation.

  1. As we saw in the lecture, the modulus of RSA has been enlarged over the years in order to thwart the dramatically improved attacks. As one would assume, public- key algorithms are becoming slower as the word length increases. We will study the relation between word length and performance in this problem. The performance of RSA, and of almost any other public-key algorithm, is dependent on how fast modulo exponentiation with large numbers can be performed. Assume that one modulo multiplication or squaring with k bit numbers takes c · k^2 clock cycles, where c is a constant. How much slower is RSA encryption/decryption with 1024 bits compared to RSA with 512 on average. Only consider the encryption/decryption itself with an exponent of full length and the square-and-multiply algorithm.

Problems (Exam Track, Analysts):

  1. There are ways to improve the square-and-multiply algorithm, that is, to reduce the number of operations required. Although the number of squaring is fixed, the number of multiplications can be reduced. Your task is to come up with a modified version of the square-and-multiply algorithm (also called left-to-right binary exponentiation) which requires fewer multiplica- tions. Give a detailed description of how the new algorithm works and what the complexity is (number of operations). Hint: Try to develop a generalization of the square-and-multiply algorithm which processes more than one bit at a time. The basic idea is to handle k (e.g., k = 3) exponent bits per iteration rather than one bit in the original square-and-multiply algorithm.
  2. Compute the following exponentiations xe^ mod m applying the right-to-left binary exponen- tiation:

(a) x = 5, e = 83, m = 101 (b) x = 7, e = 199, m = 101

After every iteration step, show the exponent of the intermediate result in binary notation. Also answer the following question:

(c) Which method, left-to-right or right-to-left is more efficient for pen-and-paper, software, hardware? Give a reason for your answers.