How guanzhi/gmssl works
GmSSL is a C cryptography library and command-line suite. A typical user invokes a gmssl command to perform cryptographic operations or handle certificates and then uses the result in an application; TLS/TLCP and QUIC provide separate secure-communication workflows. The map preserves documented algorithm, certificate, post-quantum, and hardware capabilities. Source excerpts are limited, so some connections between command front ends and implementation modules are shown as unverified rather than asserted.
Main entry points: gmssl.c Command dispatcher · sm4.c Crypto commands · tls13.c TLS and TLCP · certgen.c Certificate commands
Components 25
Command-line tools
- Command dispatcher
tools/gmssl.c - Crypto commands
tools/sm4.c - Certificate commands
tools/certgen.c - CMS commands
tools/cmsencrypt.c - PQ commands
tools/kyberkeygen.c - TLS clients
tools/tls13_client.c - TLCP client
tools/tlcp_client.c - QUIC client
tools/quic_client.c - QUIC server
tools/quic_server.c
Cryptographic primitives
- Block ciphers
src/sm4.c - Hash functions
src/sm3.c - Public-key crypto
src/sm2_key.c - Post-quantum crypto
src/kyber.c - KDF and MAC
src/hkdf.c
Certificates and envelopes
- X.509 and CRL
src/x509_cer.c - CMS envelopes
src/cms.c - OCSP status
src/ocsp.c
Secure protocols
- TLS and TLCP
src/tls13.c - TLS 1.2
src/tls12.c - TLCP protocol
src/tlcp.c - QUIC protocol
src/quic.c
Hardware providers
- SDF provider
src/sdf/sdf_lib.c - SKF provider
src/skf/skf_lib.c
Other components
- CLI user
- Crypto hardware
Connections 20
- CLI user → Command dispatcher: invokes
README.md - Command dispatcher → Crypto commands: dispatches
- Command dispatcher → Certificate commands: dispatches
- Command dispatcher → CMS commands: dispatches
- Command dispatcher → PQ commands: dispatches
- Crypto commands → Block ciphers: uses
README.md - Crypto commands → Hash functions: uses
README.md - Crypto commands → Public-key crypto: uses
README.md - PQ commands → Post-quantum crypto: uses
README.md - Certificate commands → X.509 and CRL: uses
README.md - CMS commands → CMS envelopes: uses
README.md - TLS clients → TLS and TLCP: calls
- TLS and TLCP → TLS 1.2: supports
README.md - TLCP client → TLCP protocol: calls
- QUIC client → QUIC protocol: uses
- QUIC server → QUIC protocol: uses
- TLS and TLCP → X.509 and CRL: verifies certificates
README.md - TLS and TLCP → OCSP status: supports status
README.md - SDF provider → Crypto hardware: dispatches operations
src/sdf/sdf_lib.c - SKF provider → Crypto hardware: dispatches operations