How tongsuo-project/tongsuo works
Tongsuo is a cryptographic foundation library: applications use it for cryptographic operations and secure communications, protecting data in transit, use, and storage. Its documented capabilities include commercial and international algorithms, post-quantum cryptography, homomorphic encryption, zero-knowledge proofs, certificate services, and TLS/TLCP/QUIC. The graph preserves these product branches and representative CLI entry points. The supplied excerpts do not show most implementation call paths, so unverified relationships are dashed; paths identify implementations from the tree, not inspected source.
Main entry points: evp_lib.c Crypto API · ssl_lib.c TLS and TLCP · openssl.c OpenSSL CLI · s_client.c TLS client
Components 20
Applications
- OpenSSL CLI
apps/openssl.c - TLS client
apps/s_client.c - TLS server
apps/s_server.c
Cryptographic Primitives
- Crypto API
crypto/evp/evp_lib.c - Symmetric ciphers
crypto/evp/e_aes.c - Hash functions
crypto/sha/sha256.c - SM2
crypto/sm2/sm2_sign.c - SM3
crypto/sm3/sm3.c - SM4
crypto/sm4/sm4.c - RSA
crypto/rsa/rsa_lib.c
Advanced Cryptography
- Post-quantum algorithms
crypto/ml_kem/ml_kem.c - EC-ElGamal
crypto/ec/ec_elgamal_crypt.c - Paillier
crypto/paillier/paillier_crypt.c - Bulletproofs
crypto/zkp/bulletproofs/bulletproofs.c
Identity and Trust
- X.509 certificates
crypto/x509/x509_vfy.c - CMP enrollment
crypto/cmp/cmp_client.c - CMS messaging
crypto/cms/cms_lib.c
Secure Transport
- TLS and TLCP
ssl/ssl_lib.c - QUIC
ssl/quic/quic_engine.c
Other components
- Using application
Connections 21
- Using application → OpenSSL CLI: invokes
- Using application → TLS client: starts
- Using application → TLS server: starts
- OpenSSL CLI → Crypto API: uses crypto
- TLS client → TLS and TLCP: establishes
- TLS server → TLS and TLCP: accepts
- Crypto API → Symmetric ciphers: offers algorithms
- Crypto API → Hash functions: offers algorithms
- Crypto API → SM2: offers algorithms
- Crypto API → SM3: offers algorithms
- Crypto API → SM4: offers algorithms
- Crypto API → RSA: offers algorithms
- Crypto API → Post-quantum algorithms: offers algorithms
- Using application → EC-ElGamal: uses homomorphic encryption
- Using application → Paillier: uses homomorphic encryption
- Using application → Bulletproofs: uses proofs
- Using application → X.509 certificates: uses certificate services
- Using application → CMP enrollment: uses enrollment
- Using application → CMS messaging: uses secure messaging
- Using application → QUIC: uses transport
- TLS and TLCP → QUIC: provides protocol API