in Computer Networks
1,022 views
1 vote
1 vote

 

in Computer Networks
by
1.0k views

1 comment

Is this in gaye portion 2022
0
0

1 Answer

3 votes
3 votes
Best answer

Given that g is the primitive root and n is the modulus. Party A(sender) secret key be $K_{a}$ and let party B(receiver) secret key be $K_{b}$.

Party A is aware of g,n and $K_{a}$ whereas Party B is aware of g,n and $K_{b}$ . Message sent by A to B will be $M_{ab}$ = $g^{K_{a}}$modn and message sent by party B to A will be $g^{K_{b}}$modn

$M_{ab}$ = 11mod 23 = 9 

$M_{ba}$ = 115 mod 23 = 5

The DH key for party A will be (Mba)6 mod 23 which is equal to DH key for party B which is, (Mab)5 mod 23.

(Mba)6 mod 23 = (Mab)5 mod 23 = (5)mod 23 = (9)mod 23 = 8

selected by

Related questions

3 votes
3 votes
2 answers
1
Himanshu1 asked in Computer Networks Dec 6, 2015
2,278 views
Himanshu1 asked in Computer Networks Dec 6, 2015
2.3k views