Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 5 Solutions - Ex5.1
- 1 min- Return to index
- Exercise 5.1
- Exercise 5.2
- Exercise 5.3
- Exercise 5.4
- Exercise 5.5
- Exercise 5.6
- Exercise 5.7
- Exercise 5.8
- Exercise 5.9
- Exercise 5.10
- Exercise 5.11
- Exercise 5.12
Exercise 5.1
Consider the storage of data in encrypted form in a large database using AES. One record has a size of 16 bytes. Assume that the records are not related to one another. Which mode would be best suited and why?
Solution
This solution is verified as correct by the official Solutions for Odd-Numbered Questions manual.
Cipher block chaining (CBC) mode is inappropriate since we want to be able to access individual records at random. For this very simple use case, the Electronic Code Book (ECB) mode is probably the most appropriate, although we will be able to see if any two records are the same. This could potentially be solved by using some kind of salt if this is a problem.