Skip to content

Commit 87cd20f

Browse files
Gautzillakotp
authored andcommitted
Update a^b notation to aᵇ notation.
1 parent 70c6902 commit 87cd20f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/diffie-hellman/description.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the same to pick a private key b.
1919

2020
Alice calculates a public key A.
2121

22-
A = g^a mod p
22+
A = gᵃ mod p
2323

2424
Using the same p and g, Bob similarly calculates a public key B from his
2525
private key b.
@@ -28,11 +28,11 @@ private key b.
2828

2929
Alice and Bob exchange public keys. Alice calculates secret key s.
3030

31-
s = B^a mod p
31+
s = Bᵃ mod p
3232

3333
Bob calculates
3434

35-
s = A^b mod p
35+
s = Aᵇ mod p
3636

3737
The calculations produce the same result! Alice and Bob now share
3838
secret s.

0 commit comments

Comments
 (0)