• edited by
1,334 views

4 Answers

2 2 votes

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}$ = 56 mod 23 = 8 

$M_{ba}$ = 515 mod 23 = 19

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

(Mba)6 mod 23 = (Mab)15 mod 23 = (19)6 mod 23 = (8)15 mod 23 = 2

0 0 votes
Generator = 5
Prime Modulos = 23
Now the secret key of sender(A) : 6
A will send [(5^6 mod 23) = 8] to Receiver

Secret Key of Receiver(B) : 15
B will send [(5^15 mod 23) = 19] to sender

After exchanging keys, A and B will generate a common secret key, which they will use for encryption.
Common secret key generated by A : 19^6 mod 23 (= 2)
Common secret key generated by B : 8^15 mod 23 (= 2)
0 0 votes

Both sender and receiver knows the base 'g' and 'n'. Now they both calculate A and B and send to each other. Using A and B both can calculate their keys.Both sender and receiver knows the base 'g' and 'n'. Now they both calculate A and B and send to each other. Using A and B both can calculate their keys.

Position:
Show:

Related questions

0 0 votes
2 2 answers
9.2k
9.2k views
Kartavya Kothari asked Apr 30, 2018
9,214 views
Consider the following services in network security:1. Authentication of message2. Integrity3. Privacy4. Non repudiationWhich of the security services is/are not provided...
1 1 vote
0 0 answers
615
615 views
0 0 votes
1 1 answer
876
876 views
0 0 votes
1 1 answer
2.4k
2.4k views
Appu B asked Dec 3, 2017
2,377 views
Consider the following statements with respect to digital signatures:S1: Digital signature ensures authenticity of the sender but not integrity of the message.S2: A singl...