1,088 views
0 votes
0 votes
Suppose that 2 parties A and B wish to setup a common secret key (D-H key) between themselves using the Diffie - Hellman key exchange technique. They agree on 47 as the modulus and 3 as the primitive root . Party A chooses 8 and party B chooses 10 as their respective secrets. Their D-H key is ___________________

A) 3

B) 4

C) 5

D) 6

2 Answers

1 votes
1 votes

Difee Helman Algorithm

Step 1- A and B agree to use a prime number p and base g'
step 2- A choose a secret integer 'a' and then send AA=g^a mod p.
step 3- B choose a secret integer 'b' and then send BB=g^b mod p.
step 4- A compute secret key ,S=BB^a mod p.
step 5- B compute secret key ,S=AA^b mod p.

Answer -4


 

0 votes
0 votes

Let a be the primitive root and n be the modulus. Party A secret be KA and let party B secret be KB.

Party A is aware of a,n and KA whereas Party B is aware of a,n and KB. Message sent by A to B will be Mab = aKA mod n and message sent by party B to A will be Mba = aKB mod n

Mab = 38 mod 47 

Mba = 310 mod 47

The DH key for party A will be (Mba)8 mod 47 which is equal to DH key for party B which is, (Mab)10 mod 47.

(Mba)8 mod 47 = (Mab)10 mod 47 = (310 mod 47)mod 47 = (38 mod 47 )10 mod 47 = 380 mod 47 = 4

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
amiteshKeshari asked Oct 23, 2023
652 views
In a Class C network,if subnet mask is 255.255.255.244 then how many number of host in each subnet?
0 votes
0 votes
0 answers
3
54Y4N asked Oct 9, 2023
233 views
A 1 kilometer long CSMA/CD (not 802.3) has a propagation speed of 200m/ìsec. Repeaters are not allowed in this system Data frames are 256 bits long, including 32 bits of...