Me | You |
Prime, P = 29,α = 2
| |
secretme = 5
αsecretme
= 25 = 32 = x (mod P) = 3 (mod 29) | secretyou = 12
αsecretyou
= 212 = 4096 = y (mod P) = 7 (mod 29) |
ysecretme = Z (mod P) 75 = Z (mod 29) | xsecretyou = Z (mod P) 312 = Z (mod 29) |
Z = 16 | |
I'm passing on "Alice and Bob" because I think that it's a terrible notation. In the example above, the prime P, and α are initially shared. The result is "Z", which is calculated between both parties.
No comments:
Post a Comment