Implementation of Elliptic curve Diffie-Hellman in MATLAB
- Open ecc_diffie_hellman.m file
- Change parameters accordingly as per comments
- Run the code
- A shared key k1 and k2 will be generated
- Run display_elliptic_curve.m file
- You can save the curve coordinates as an array. (See function structure)
Kefa Rabah , 2005. Implementation of Elliptic Curve Diffie-Hellman and EC Encryption Schemes. Information Technology Journal, 4: 132-139.
https://andrea.corbellini.name/ecc/interactive/modk-add.html
https://crypto.stanford.edu/pbc/notes/elliptic/explicit.html
https://www.brainkart.com/article/Elliptic-Curve-Arithmetic_8442/