mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 11:18:02 +00:00
Update sample_ans.md
This commit is contained in:
committed by
GitHub
parent
c72724d173
commit
7117a43a3f
@@ -13,16 +13,16 @@ Bob Select x=6, Alice selects y=9
|
||||
|
||||
Now calculate (using a calculator):
|
||||
|
||||
Bob’s A value (gx mod N): **9381**
|
||||
Bob’s A value (g<sup>x</sup> mod N): **4850**
|
||||
|
||||
Alice’s B value (gy mod N): **1067**
|
||||
Alice’s B value (g<sup>y</sup> mod N): **3614**
|
||||
|
||||
### A.2 Now they exchange the values. Next calculate the shared key:
|
||||
|
||||
|
||||
Bob’s value (Bx mod N): **210**
|
||||
Bob’s value (B<sup>x</sup> mod N): **4868**
|
||||
|
||||
Alice’s value (AY mod N): **210**
|
||||
Alice’s value (A<sup>y</sup> mod N): **4868**
|
||||
|
||||
Do they match? **[Yes]**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user