Click here to Skip to main content
15,906,455 members

Comments by dyf7970268 (Top 1 by date)

dyf7970268 13-Apr-14 23:51pm View    
Thank you for your answer.
I'm sorry, I described is wrong, this is the result of Google Translate, and I describe in detail, which is Google translation.
I need to export the Diffie-Hellman shared key .
There are two users A and B.
G and P are known between 128 byte value. P is a large prime number, G is an arbitrary value.
A randomly generates a value Xa, B generates a random value Xb, Xa and Xb are confidential, and only two of them know.
A calculation Ya = G ^ Xa mod P.
B calculated Yb = G ^ Xb mod P.
The two sides exchanged value Ya and Yb.
A case can be calculated key Ka = Yb ^ Xa, B can be calculated key Kb = Ya ^ Xb mod P;
According to DH algorithms can know Ka equal Kb.
Ka and Kb are shared key.
When I was a user A, I want to export is the Ka value.