Documentation • Getting Started • Use Cases • API reference
TQ42 Cryptography by Terra Quantum is a comprehensive, low-level cryptography library designed to cover Encryption, Hashing, Electronic Signatures, and Key Management Systems. It is specifically crafted to help individual developers, businesses, and governmental entities prepare for the quantum era and enhance the security of their data, and expands upon the existing functionality offered in TQ42, the quantum-as-a-service ecosystem by Terra Quantum.
This open-source C++ library offers a unified API for both post-quantum (PQ) and quantum-resistant algorithms, as well as key generation and management functions. View the documentation.
The library will expand to include support for additional languages (e.g., Python, iOS, Android), additional post-quantum algorithms, and upgrade options, like the ability to purchase quantum keys generated from Terra Quantum's proprietary Single Photon Quantum Random Number Generator (QRNG), which is designed and implemented according to the latest NIST standard (SP 800-90B) and certified by METAS.
The TQ42 Cryptography v0.2.2 implementations of the Post-Quantum algorithms ML-KEM, ML-DSA, and SLH-DSA, comply with the latest NIST standards (FIPS 203, 204, and 205). These algorithms have also been validated through the NIST Cryptographic Algorithm Validation Program (CAVP). For further details, please visit the NIST CAVP webpage.
The validation process spans multiple operating systems and hardware configurations, including:
- Red Hat 9.4
- Ubuntu 24.04
- Windows 11
- Windows 2022
- IOS 17.5.1
- Android 14
Terra Quantum offers advanced quantum security products, including the Terra Quantum Secure Network (TQSN), a novel solution for organizations looking for full security via Quantum Key Distribution (QKD), a revolutionary technology that leverages the quantum mechanical properties of light and allows for the distribution of cryptographic keys with absolute security, making decryption impossible. Terra Quantum's patented Secure Network solution (TQSN) works well over long distances with high bit rates. It is the world's first scalable, zero-trust Secure Network for global communications. Visit terraquantum.swiss to learn more, or contact us at [email protected].
Details on the library contents can be found in the documentation. Library contents are subject to change.
Hash Function:
- SHA-3 (all modes: 224, 256, 384, 512, SHAKE-128, SHAKE-256)
Symmetric Encryption:
- AES-256 (modes: GCM, ECB, CBC, OFB, CTR)
Key Encapsulation Mechanism:
- ML-KEM (modes: ML-KEM-512, ML-KEM-768, ML-KEM-1024)
- Classic McEliece 8192128f
Digital Signature:
- SLH-DSA (modes: SLH-DSA-SHAKE-128s, SLH-DSA-SHAKE-128f, SLH-DSA-SHAKE-192s, SLH-DSA-SHAKE-192f, SLH-DSA-SHAKE-256s, SLH-DSA-SHAKE-256f)
- ML-DSA (modes: ML-DSA-44, ML-DSA-65, ML-DSA-87)
- Falcon padded 1024
The TQ42 Cryptography library is available under two primary licensing options to accommodate the diverse needs of organizations at different stages of their post-quantum migration journeys:
- Free Use is permitted under AGPLv3
- A Commercial license is available by contacting Terra Quantum at [email protected]
Contributions will be welcomed in the near future under a Contributor license.