crypto-calcul
is a cryptographic library that provides various functionalities in C with a GUI.
- C compiler
GMP
library- Python3
To build the library, follow these steps:
-
Clone the repository.
-
Ensure you have a C compiler and
GMP
library installed. -
Build the library:
make
This will compile all the source files and create the necessary executables for testing.
-
Setup Python virtual environment and install dependencies:
python3 -m venv .venv if [ -z "$PYTHONPATH" ]; then echo "export PYTHONPATH=./build" >> .venv/bin/activate; fi source .venv/bin/activate pip install -r requirements.txt
-
Wrap C libraries into Python modules:
make wrap
To run the tests, follow these steps:
-
Ensure you have built the library as described above.
-
Run the tests:
make test
-
Test Cython wrapper for UI:
python3 src/frontend/test.py
This will execute all the test executables and display the results.
To clean up the build artifacts, run:
make clean