CS FundamentalsHardGATE CS · Product company CS fundamentals

100 users each need to communicate privately with every other user. How many keys are needed with symmetric (secret-key) cryptography, and how many key pairs with public-key cryptography?

  1. A. 100 secret keys; 4950 key pairs
  2. B. 4950 secret keys; 100 key pairs
  3. C. 9900 secret keys; 100 key pairs
  4. D. 4950 secret keys; 4950 key pairs

Correct answer: B. 4950 secret keys; 100 key pairs

Each pair of users needs its own shared secret: C(100, 2) = 100 × 99 / 2 = 4950. With public keys each user needs just one pair (200 keys in all), since anyone can encrypt with a user's public key.

More Computer Networks questions

Exams that ask this topic