Applied Cryptography

On a certain machine, a brute-force search trying every 56-bit key takes about 20 hours. Which of the following is closest to the time the same machine needs to try every 64-bit key?

  1. AAbout 23 hours
  2. BAbout 160 hours
  3. CAbout 213 days
Show answer and explanation

Answer: C. About 213 days

A key of n bits has 2ⁿ candidates, so adding 8 bits to the key length multiplies the candidates by 2⁸ = 256. Therefore 20 hours × 256 = 5,120 hours = about 213 days. Each additional bit doubles the brute-force effort, and AES-128 has 2⁷² times (about 4.7 × 10²¹ times) as many key candidates as a 56-bit key.

  • A. About 23 hours is 20 × 64/56, the value obtained by assuming that the effort is proportional to the key length.
  • B. About 160 hours is 20 × 8, the value obtained by counting the 8 extra bits as a factor of 8.
  • C. Correct. 20 × 2⁸ = 5,120 hours, about 213 days.
Practice this topic Back to topic

Books on Applied Cryptography Ad

As an Amazon Associate I earn from qualifying purchases.

More Applied Cryptography questions

  1. Which of the following correctly describes the hash functions SHA-2 and SHA-3?
  2. Using the hash SHA-256(K ‖ m) of a secret key K concatenated with a message m as a tag for detecting tampering is considered dangerous. Which of the following is the reason?
  3. Let 1 GiB = 2³⁰ bytes and 1 EiB = 2⁶⁰ bytes. A block cipher with a 64-bit block (such as 3DES) is used in CBC mode to encrypt a large amount of data under one key. Treating the ciphertext blocks as random 64-bit values, which of the following is the approximate amount of data at which, by the birthday paradox, the probability that a pair of identical ciphertext blocks appears can no longer be ignored?
  4. In protocols such as TLS 1.3, the shared secret obtained from an ECDHE key exchange is not used directly as an encryption key; instead keys are made by passing it through a key derivation function (KDF) such as HKDF. Which of the following is an appropriate reason?
  5. The mechanism of RSA is checked with small numbers. From the primes p = 5 and q = 11, n = pq is formed, and the public exponent is e = 3. With φ(n) = (p − 1)(q − 1), which of the following is the private exponent d (0 < d < φ(n)) that satisfies e × d ≡ 1 (mod φ(n))?

Comparisons in this topic