The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
63 views

 

asked in Computer Networks by Loyal (6.9k points) | 63 views

1 Answer

+2 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

answered by Active (4.2k points)
selected by

Related questions

+2 votes
2 answers
1
asked Dec 6, 2015 in Computer Networks by Himanshu1 Boss (15.6k points) | 616 views


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

42,575 questions
48,566 answers
155,469 comments
63,592 users