Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 1 Solutions - Ex1.3

- 2 mins

Exercise 1.3

We consider the long-term security of the Advanced Encryption Standard (AES) with a key length of 128-bit with respect to exhaustive key-search attacks.

AES is perhaps the most widely used symmetric cipher at this time.

  1. Assume that an attacker has a special purpose application specific integrated circuit (ASIC) which checks keys per second, and she has a budget of $1 million. One ASIC costs $50, and we assume 100% overhead for integrating the ASIC (manufacturing the printed circuit boards, power supply, cooling, etc.). How many ASICs can we run in parallel with the given budget? How long does an average key search take? Relate this time to the age of the Universe, which is about years.
  2. We try now to take advances in computer technology into account. Predicting the future tends to be tricky but the estimate usually applied is Moore’s Law, which states that the computer power doubles every 18 months while the costs of integrated circuits stay constant. How many years do we have to wait until a key-search machine can be built for breaking AES with 128 bit with an average search time of 24 hours? Again, assume a budget of $1 million (do not take inflation into account).

Solution

This solution is verified as correct by the official Solutions for Odd-Numbered Questions manual.

1. By the numbers specified, each machine costs $100.

$$ $1,000,000 \div $100 = 10,000\,\mathsf{machines} $$.

Each of our 10,000 machines checks $5 \times 10^8$ keys per second, so we can calculate the speed of our parallelised machines as:

$$ 5 \times 10^8 \times 10^4 = 5 \times 10^{12}\,\mathsf{keys/second} $$

On average, we’ll find the correct key halfway through our search of the keyspace (), so the average case will be checks.

To calculate the length of time to find a key in the average case:

$$ \frac{2^{127}\,\mathsf{keys}}{5 \times 10^{12}\,\mathsf{keys/second}} \approx 3.4 \times 10^{25}\,\mathsf{seconds}$$

This comes out to:

$$ 1.08 \times 10^{18}\,\mathsf{years} $$

This is approximately times longer than the elapsed age of the universe.

2. If we represent the number of Moore’s Law iterations to bring the using then we can express the equation as:

$$ 1.08 \times 10^{18}\,\mathsf{years} \times \frac{365}{2^i} = 1\,\mathsf{day} $$

We can rearrange this equation to make the only item on the left:

$$ 2^i = 1.08 \times 10^{18}\,\mathsf{years} \times 365\,\mathsf{days} $$

The reveals a value of which is roughly .

Rounding the number of iterations to 69 allows us to calculate the number of years:

$$ 1.5\,\mathsf{years} \times 69\,\mathsf{iterations} = 103.5\,\mathsf{years} $$

Thomas Busby

Thomas Busby

I write about computing stuff

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora