How weidai11/cryptopp works
Crypto++ is a C++ cryptographic library, not a standalone application: callers select algorithms and use a common API to process data. Its capabilities span symmetric encryption and authentication, hashing, public-key operations, key derivation and random generation, plus encoding, checksums, compression, and arithmetic utilities. The README also describes a filter/pipeline interface and hardware-accelerated implementations. The excerpts do not show a single end-to-end runtime entry point, so the graph presents these as library capabilities rather than an invented execution chain.
Main entry points: filters.h Filter pipeline · cryptlib.h Crypto interfaces · cpu.h CPU feature detection · algparam.h Algorithm parameters
Components 26
Core API
- Crypto interfaces
cryptlib.h - Filter pipeline
filters.h - Algorithm parameters
algparam.h - Secure memory
secblock.h - Resource ownership
smartptr.h - Common utilities
misc.h - C++ support
stdcpp.h
Symmetric Cryptography
- Block ciphers and modes
modes.h - Stream ciphers
chacha.h - Authenticated encryption
authenc.h - Hash functions
sha.h - Message authentication
hmac.h
Public-Key Cryptography
- Public-key schemes
pubkey.h - Key encoding
asn.h - Multiprecision arithmetic
integer.h - Number theory
nbtheory.h
Supporting Capabilities
- Random generation
rng.cpp - Key derivation
pwdbased.h - Data encoding
base64.h - Compression
zlib.h - Checksums
crc.h - Validation support
validate.h
Platform Acceleration
- CPU feature detection
cpu.h - SIMD implementations
adv_simd.h - Curve25519 implementations
donna.h
Other components
- Library caller
Connections 21
- Library caller → Crypto interfaces: uses API
- Library caller → Filter pipeline: uses pipeline
- Crypto interfaces → Filter pipeline: defines transformation API
filters.h - Filter pipeline → Algorithm parameters: uses parameters
filters.h - Filter pipeline → Secure memory: uses buffers
filters.h - Library caller → Block ciphers and modes: selects algorithms
- Library caller → Stream ciphers: selects algorithms
- Library caller → Authenticated encryption: selects algorithms
- Library caller → Hash functions: selects algorithms
- Library caller → Message authentication: selects algorithms
- Library caller → Public-key schemes: selects schemes
- Library caller → Key encoding: uses encoding
- Library caller → Multiprecision arithmetic: uses arithmetic
- Library caller → Number theory: uses operations
- Library caller → Random generation: uses generators
- Library caller → Key derivation: derives keys
- Library caller → Data encoding: encodes data
- Library caller → Compression: compresses data
- Library caller → Checksums: computes checksums
- CPU feature detection → SIMD implementations: selects features
- Library caller → Validation support: runs validation