Skip to content
KALANBLON
Show contents

Chapter 6 of 6 · 10 min

Quiz: exchanging keys

Diffie-Hellman, discrete logarithm, man in the middle, HKDF and replay protection: check that you can set up an encrypted channel. You need 70% correct answers to pass this quiz.

Quiz

7 questions · pass mark: 70%

  1. 1.In Diffie-Hellman, Awa publishes A = g^a mod p and Kofi publishes B = g^b mod p. What does Awa compute to get the shared secret?

    One answer

  2. 2.What stops a spy who sees p, g, A and B from computing the secret?

    One answer

  3. 3.Complete the computation of A, Awa's public value.

    Complete the code

    A = ___(g, a, p)
  4. 4.Against which attack does Diffie-Hellman alone not protect?

    One answer

  5. 5.Why pass the Diffie-Hellman secret through HKDF instead of using it directly?

    One answer

  6. 6.When a packet arrives, in which order must the operations be done?

    One answer

  7. 7.Which measures protect Awa and Kofi's messaging app?

    Several answers possible

Your progress is saved on this device. Create a free account to keep your progress on all your devices.