QCA3 (QCA 3.x) is an open-source, general-purpose C++ cryptography library for Qt 5 and Qt 6. It is the independently maintained ABI-major-3 fork of KDE QCA, with an extensible provider architecture and native cryptographic backends. It is not an official KDE QCA 3 release.
Project website · Releases and SDKs · Installation · Issues
QCA3 retains QCA2's provider-based Qt/C++ API for cryptographic primitives, keys, certificates, secure memory, TLS, SASL and other security services. The following are extensions and improvements over the upstream QCA 2.x line:
- Secure peer-to-peer transport. Working DTLS in the OpenSSL and Windows Schannel providers, including datagram boundaries and MTU handling, plus DTLS-SRTP (RFC 5764) profile negotiation and key export. These extensions provide the cryptographic transport foundation for WebRTC-style audio/video calls and SCTP data channels, including P2P file transfer.
- Modern authentication. TLS channel binding (including TLS 1.3 exporter binding where supported) and SCRAM-SHA-1/256/384/512 with their channel-binding (+PLUS) variants through Cyrus SASL.
- Native Windows cryptography without OpenSSL. The legacy CryptoAPI-based WinCrypto provider has been rewritten around CNG, Crypt32 and Schannel. It now supports a much wider range of operations, including AES-GCM, RSA, DSA, certificate validation, stream TLS and DTLS. Native-only builds can use Cyrus SASL without linking OpenSSL.
- Expanded cryptographic API. SHA-3 and BLAKE2b hashing, Ed25519 key generation, signing, verification and PEM/DER key I/O in the OpenSSL provider. Qt 6 also gains a QByteArrayView hash-input overload.
- Android system trust. Use Android's system certificate store through the platform TrustManagerFactory rather than relying on a certificate bundle copied from the build host.
- Independent ABI and deployment. Distinct library, header, tool and provider paths and incompatible-plugin rejection before loading allow QCA3 to coexist with QCA2. Ready-to-use SDK archives and selected Linux DEB packages simplify deployment.
- Reliability and security maintenance. Fixes for key-store initialization deadlocks, TLS/DTLS state handling, protected-memory allocation and provider resource lifetime. Continued OpenSSL compatibility work, including OpenSSL 4.x, cross-platform CI and interoperability regression tests.
Current development (not yet in the v3.3.0 release): provider-independent Argon2id password-based key derivation, including a portable fallback; native finite-field DH in the Windows provider; and full Linux ASan/LSan/UBSan and TSan test suites with fixes for detected defects.
DTLS-SRTP exports keying material; SRTP/SRTCP packet protection, ICE and SCTP are outside QCA's scope. The available operations depend on the provider, platform and version. Applications should query QCA capabilities at runtime and handle unsupported operations explicitly. See the Windows provider audit and native DH limitations.
QCA3 deliberately uses a distinct ABI major and separate library, headers, tools, CMake packages, pkg-config files and plugin installation paths. QCA 2 and QCA 3 can be installed side by side. Rebuild applications and providers against the intended ABI; do not mix QCA2 and QCA3 provider binaries. Qt's major version is independent of QCA's major version.
With Qt 6 and the default suffix:
| Interface | Name |
|---|---|
| Library | qca3-qt6 |
| CMake package | Qca3-qt6 |
| CMake target | Qca3::Qca |
| pkg-config | qca3-qt6 |
| Tool | qcatool3-qt6 |
find_package(Qca3-qt6 CONFIG REQUIRED)
target_link_libraries(my_target PRIVATE Qca3::Qca)#include <QtCrypto>
QCA::Initializer init;
// Keep the initializer alive for the lifetime of QCA objects.Install the matching provider(s) for the algorithms and protocols used by your application. For Qt 5 builds with the default suffix, select Qca3-qt5.
Download source archives and platform SDKs from GitHub Releases. Release assets include selected Linux DEB packages and Windows, macOS and Android SDK archives. Build from a release tag for reproducible production builds.
For example, with Qt 6, CMake, a C++ compiler and OpenSSL development files installed:
git clone https://github.com/psi-im/qca.git
cd qca
cmake -S . -B build -DBUILD_WITH_QT6=ON -DBUILD_PLUGINS=ossl
cmake --build build --parallel
ctest --test-dir build --output-on-failure
cmake --install buildSee INSTALL for provider selection, installation paths, Qt 5 and Android options.
QCA is licensed under the GNU Lesser General Public License; see COPYING. Individual components retain their own license notices. QCA was originally developed by Justin Karneges. This fork welcomes contributions and reproducible bug reports. See the historical README for earlier changes and credits.