How bmwcarit/mococrw works
MoCOCrW is a C++14/17 wrapper library that exposes OpenSSL-backed cryptographic and X.509 functionality through end-user APIs. A typical consumer chooses a key or certificate operation, invokes the relevant API, and receives cryptographic data or processed X.509 objects. The map preserves the README’s major feature areas and a separate OpenSSL abstraction layer. Source excerpts are partial, so relationships between feature modules are shown only where documented or evidenced by the index.
Main entry points: openssl_wrap.cpp OpenSSL Wrappers · asymmetric_crypto_ctx.cpp Asymmetric Contexts · symmetric_crypto.cpp AES Ciphers · dilithium.cpp Dilithium Keys
Components 24
Keys and Signatures
- Key Management
src/key.cpp - Asymmetric Contexts
src/asymmetric_crypto_ctx.cpp - Dilithium Keys
src/dilithium.cpp - HSM Access
src/hsm.cpp
Crypto Primitives
- Hashing
src/hash.cpp - AES Ciphers
src/symmetric_crypto.cpp - Key Derivation
src/kdf.cpp - Message Authentication
src/mac.cpp - ECIES
src/ecies.cpp - Signature Padding
src/padding_mode.cpp
X.509 and PKI
- Certificate Processing
src/x509.cpp - CA Operations
src/ca.cpp - Revocation Lists
src/crl.cpp - Certificate Requests
src/csr.cpp - Distinguished Names
src/distinguished_name.cpp - PKCS#12
src/pkcs12.cpp
OpenSSL Abstraction
- BIO I/O
src/bio.cpp - OpenSSL Wrappers
src/openssl_wrap.cpp - OpenSSL Calls
src/openssl_lib.cpp
Shared Support
- ASN.1 Time
src/asn1time.cpp - Utilities
src/util.cpp - Sensitive Memory
src/symmetric_memory.cpp
Other components
- Library Consumer
- OpenSSL
Connections 8
- Library Consumer → Key Management: uses APIs
- Library Consumer → Asymmetric Contexts: uses APIs
- Library Consumer → AES Ciphers: uses APIs
- Library Consumer → Certificate Processing: uses APIs
- OpenSSL Wrappers → OpenSSL Calls: dispatches calls
src/openssl_wrap.cpp - OpenSSL Wrappers → OpenSSL: wraps calls
- Dilithium Keys → Asymmetric Contexts: uses contexts
- ECIES → AES Ciphers: uses cipher