How amramin761/v2g_cryptostack works
V2G_CryptoStack is an AUTOSAR-style cryptographic services stack. The principal workflow is an application submitting a configured cryptographic job through CSM, CryIf routing it to the Crypto driver, and the driver executing a primitive and returning completion. The README names ECDH, 3-DES, SHA-256, and ECDSA; the graph preserves these capabilities and the ECDSA arithmetic layer. Some algorithm sources were not sampled, so their links to the driver are documented only where the source index supports them or are left unverified.
Main entry points: Crypto.c Crypto driver · CryIf.c CryIf routing · Csm.c CSM services · ecp.c EC point math
Components 12
Service routing
- CSM services
CSM/src/Csm.c - CryIf routing
CryIf/src/CryIf.c
Crypto driver
- Crypto driver
Crypto/src/Crypto.c
Crypto primitives
- SHA-256
Crypto_ecdsa/sha256.c - 3-DES
Crypto_3DES/3-DES.c - ECDH
Crypto_ECDH/src/Crypto_ECDH.c - ECDSA signing
Crypto_ecdsa/Crypto_ECDSA_Signature_Generate.c - ECDSA verification
Crypto_ecdsa/Crypto_ECDSA_Signature_Verify.c - EC point math
Crypto_ecdsa/ecp.c - Big integers
Crypto_ecdsa/bignum.c
Key storage
- Key and certificate storage
NvM/src/NvM.c
Other components
- Application
Connections 11
- Application → CSM services: submits job
CSM/src/Csm.c - CSM services → CryIf routing: dispatches job
CSM/src/Csm.c - CryIf routing → Crypto driver: routes jobs
- Crypto driver → SHA-256: uses SHA-256
Crypto/src/Crypto.c - Crypto driver → ECDH: uses ECDH
Crypto/src/Crypto.c - Crypto driver → ECDSA signing: calls signing
Crypto/src/Crypto.c - Crypto driver → ECDSA verification: calls verification
Crypto/src/Crypto.c - Crypto driver → 3-DES: supports 3-DES
- EC point math → Big integers: uses integers
- Crypto driver → Key and certificate storage: uses key descriptors
- Crypto driver → CryIf routing: notifies completion
Crypto/src/Crypto.c