This repository contains two implementations of the Diffie Hellman key exchange protocol:
- Diffie Hellman over Prime Fields
- Diffie Hellman over Elliptic Curves
The repository is structured as follows: |-- src/ |-- assignment01.cpp # Implementation of Diffie Hellman over Prime Fields |-- assignment02.cpp # Implementation of Diffie Hellman over Elliptic Curves
- Programming Language: C++17
- Standard libraries only (as per C++ Standard Library Reference)
- Each program must compile into a single executable:
a.exe
.
To compile the code:
g++ -std=c++17 -o a.exe bai1.cpp # For Diffie Hellman over Prime Fields
g++ -std=c++17 -o a.exe bai2.cpp # For Diffie Hellman over Elliptic Curves
Run the compiled program with input and output files:
./a.exe test.inp test.out
Plagiarism or sharing solutions with peers is strictly prohibited and will result in a score of zero for all involved parties.
For any queries regarding the project, please reach out to:
Email: ptnhanit230104@gmail.com