CS FundamentalsVery hardGATE CS · Product company CS fundamentals
Diffie–Hellman uses p = 29 and g = 2. Alice's secret is a = 5 and Bob's is b = 11. What values do they send each other, and what shared key results?
- A. Alice sends 3, Bob sends 18, key 25
- B. Alice sends 10, Bob sends 22, key 23
- C. Alice sends 3, Bob sends 18, key 15
- D. Alice sends 3, Bob sends 18, key 19
Correct answer: C. Alice sends 3, Bob sends 18, key 15
A = 2⁵ mod 29 = 3, B = 2¹¹ mod 29 = 18. Alice computes B^a mod p and Bob A^b mod p, both equal to 2^(ab) = 2⁵⁵ mod 29 = 15. Multiplying the public values or using 2^(a+b) are common errors.
More Computer Networks questions
- Textbook RSA uses p = 5, q = 11 and e = 3. What is the private exponent d, and what ciphertext does m = 9 produce?
- A company places its public web and mail servers in a DMZ. Which arrangement matches this design?
- How many of the following statements about QUIC are correct? 1. It runs over UDP and implements reliability and congestion control itself…
- Which statement about TLS certificates is correct?
- Which pair of primitives guarantees integrity and authenticity of a message between two parties that share a secret key, without providing…
- A switch network accidentally has a loop and Spanning Tree is disabled. A host sends one ARP broadcast. What happens?