Skip to content

Implementation of Elliptic curve Diffie-Hellman in MATLAB

License

Notifications You must be signed in to change notification settings

ajaybiswas22/ecdh-matlab

Repository files navigation

ecdh-matlab

Implementation of Elliptic curve Diffie-Hellman in MATLAB

How to Run

  1. Open ecc_diffie_hellman.m file
  2. Change parameters accordingly as per comments
  3. Run the code
  4. A shared key k1 and k2 will be generated

View Elliptic Curve

  1. Run display_elliptic_curve.m file
  2. You can save the curve coordinates as an array. (See function structure)

References

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/