210-250 · Question #187
Which one of the following parts of the Diffie-Hellman calculation is an arbitrary item that is agreed upon by both parties before any mathematical calculations?
The correct answer is A. prime number (p). In Diffie-Hellman key exchange, the prime number p is a publicly agreed-upon parameter that both parties establish before performing any calculations.
Question
Which one of the following parts of the Diffie-Hellman calculation is an arbitrary item that is agreed upon by both parties before any mathematical calculations?
Options
- Aprime number (p)
- Bsecret key (a)
- Cpublic key (g)
- Dshared key (s)
How the community answered
(43 responses)- A93% (40)
- B5% (2)
- C2% (1)
Why each option
In Diffie-Hellman key exchange, the prime number p is a publicly agreed-upon parameter that both parties establish before performing any calculations.
The prime number p serves as the shared modulus in the Diffie-Hellman mathematical framework and must be agreed upon by both parties before any private values or calculations are introduced. It is a publicly known, arbitrary large prime that anchors all subsequent modular arithmetic in the key exchange, as defined in RFC 2631.
The secret key 'a' is each party's independently chosen private value and is never shared or agreed upon between the two parties.
In standard DH notation, g is the generator (primitive root), not a public key - and while it is also a shared parameter, the question specifically identifies the prime modulus p as the arbitrary agreed-upon item in most DH descriptions.
The shared key 's' is the final computed output of the Diffie-Hellman exchange, derived after all calculations are complete, not something agreed upon beforehand.
Concept tested: Diffie-Hellman key exchange shared prime parameter
Source: https://www.rfc-editor.org/rfc/rfc2631
Topics
Community Discussion
No community discussion yet for this question.