CS FundamentalsEasyGATE CS (PYQ pattern)
Alice and Bob use Diffie-Hellman with p = 23 and g = 5. Alice's secret is a = 6 and Bob's is b = 15. What is the shared secret key?
- A. 2
- B. 8
- C. 19
- D. 3
Correct answer: A. 2
Alice sends 5^6 mod 23 = 8; Bob sends 5^15 mod 23 = 19. The key is 19^6 mod 23 = 8^15 mod 23 = 2.
More Computer Networks questions
- 1000 bytes of plaintext are encrypted with AES in CBC mode (16-byte blocks) using PKCS#7 padding, and a random 16-byte IV is sent in front…
- IPsec ESP in tunnel mode with AES-CBC protects an inner IP packet of 1400 bytes. Overheads: new outer IP header 20 bytes, ESP header 8…
- An optical link is 80 km long with fibre attenuation 0.25 dB/km and two connectors of 0.5 dB each. The transmitter output is 10 mW. What…
- A geostationary link has 250 ms one-way propagation delay and runs at 2 Mbps with 1000-byte frames (ACK transmission time ignored). To…
- A router buffer is modelled as an M/M/1/K queue with at most K = 5 packets in the system (including the one in service) and utilisation…
- A 3000-byte attachment is Base64-encoded for e-mail: every 3 bytes become 4 characters, and the encoded text is wrapped into lines of at…