How uitxwoodynguyen/ecc-from-scratch-digital-signatures works
This is an ECC and digital-signature suite with a CLI, a C API, and a PyQt desktop interface. Users can generate and inspect keys, perform curve operations, encrypt or decrypt files, and sign or verify them; the interfaces dispatch those requests to cryptographic implementations. Separate capabilities include educational attack demonstrations, ECDH/X25519, and authenticated seal/open containers. The graph preserves these documented branches. Source-index references and excerpts support the shown connections; unsampled implementation details are not inferred.
Main entry points: main.cpp CLI dispatcher · ec_keys.cpp Key management · c_api.cpp C API · sigfile.cpp L3SG containers
Components 16
User interfaces
- CLI dispatcher
src/main.cpp - Desktop GUI
GUI/main.py - Python bindings
GUI/crypto_core.py - C API
src/c_api.cpp
Keys and curves
- Key management
src/ec_keys.cpp - EC arithmetic
src/ec_math.cpp - ECDH / X25519
src/x25519_edu.cpp
Encryption
- ECIES containers
src/ecies.cpp - Seal and open
src/seal_open.cpp
Signatures
- L3SG containers
src/sigfile.cpp - RSA signatures
src/rsa_sig.cpp - ECDSA
src/ecdsa.cpp - EdDSA
src/eddsa.cpp
Shared foundation
- Crypto utilities
src/common.cpp
Other components
- User
- OpenSSL
Connections 36
- User → CLI dispatcher: runs commands
src/main.cpp - User → Desktop GUI: uses
README.md - Desktop GUI → Python bindings: calls wrappers
GUI/main.py - Python bindings → C API: calls DLL API
GUI/crypto_core.py - CLI dispatcher → EC arithmetic: dispatches curve ops
src/main.cpp - CLI dispatcher → Key management: dispatches key ops
src/main.cpp - CLI dispatcher → ECDH / X25519: dispatches key agreement
src/main.cpp - CLI dispatcher → ECIES containers: dispatches encryption
src/main.cpp - CLI dispatcher → L3SG containers: dispatches sign/verify
src/main.cpp - CLI dispatcher → RSA signatures: dispatches RSA demo
src/main.cpp - CLI dispatcher → ECDSA: dispatches ECDSA
src/main.cpp - CLI dispatcher → EdDSA: dispatches EdDSA
src/main.cpp - CLI dispatcher → Seal and open: dispatches seal/open
src/main.cpp - C API → Key management: calls key operations
src/c_api.cpp - C API → EC arithmetic: calls curve operations
src/c_api.cpp - C API → ECDH / X25519: calls self-tests
src/c_api.cpp - C API → ECIES containers: calls encryption
src/c_api.cpp - C API → L3SG containers: calls signing
src/c_api.cpp - C API → Seal and open: calls seal/open
src/c_api.cpp - EC arithmetic → Crypto utilities: uses utilities
src/ec_math.cpp - Key management → Crypto utilities: uses utilities
src/ec_keys.cpp - ECDH / X25519 → EC arithmetic: uses curve operations
src/x25519_edu.cpp - ECDH / X25519 → Key management: uses key handling
src/x25519_edu.cpp - ECIES containers → Key management: uses key handling
src/ecies.cpp - ECIES containers → EC arithmetic: uses curve operations
src/ecies.cpp - L3SG containers → Key management: uses key handling
src/sigfile.cpp - L3SG containers → RSA signatures: dispatches RSA signing
src/sigfile.cpp - L3SG containers → ECDSA: dispatches ECDSA signing
src/sigfile.cpp - L3SG containers → EdDSA: dispatches EdDSA signing
src/sigfile.cpp - ECDSA → Key management: uses key handling
src/ecdsa.cpp - EdDSA → Key management: uses key handling
src/eddsa.cpp - Seal and open → L3SG containers: uses signature format
src/seal_open.cpp - Seal and open → ECIES containers: uses encryption
src/seal_open.cpp - Seal and open → Key management: uses key handling
src/seal_open.cpp - EC arithmetic → OpenSSL: uses crypto library
- Crypto utilities → OpenSSL: uses crypto library