QCA3 โ€” Qt Cryptographic Architecture 3

Open-source, provider-based cryptography for Qt 5 and Qt 6 applications.

What is QCA3?

QCA3 (QCA 3.x) is a general-purpose C++ cryptography library based on KDE Qt Cryptographic Architecture (QCA). It is an independently maintained fork with ABI major 3, not an official KDE QCA 3 release. QCA abstracts cryptographic implementations behind a Qt-oriented public API, allowing applications to select and use providers without binding their code to a particular cryptographic library.

Why QCA3?

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:

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. Not every provider implements every operation. Query capabilities at runtime and consult the Windows provider audit and native DH limitations.

QCA3 versus QCA2: ABI and migration

QCA 3 uses ABI-major-qualified installation names and can coexist with QCA 2. Applications and providers must be built against the same QCA ABI and Qt major version. QCA 3 is not a drop-in binary replacement for QCA 2. Existing source using QCA's API should be checked and rebuilt.

Qt 6 integrationQCA 3 name (default suffix)
Library / pkg-configqca3-qt6
CMake packageQca3-qt6
CMake targetQca3::Qca
Toolqcatool3-qt6

Use QCA3 with CMake

find_package(Qca3-qt6 CONFIG REQUIRED)
target_link_libraries(my_target PRIVATE Qca3::Qca)

Include <QtCrypto> and keep a QCA::Initializer alive while using QCA objects. Install the provider required for your application. For Qt 5 with the default suffix use the Qca3-qt5 package.

Download and install

QCA3 releases provide source code, selected Linux DEB packages and SDK archives for Windows, macOS and Android. Check the release assets for the desired architecture and Qt version. See the installation guide for source builds and provider options.

License and development

QCA is licensed under the GNU Lesser General Public License (license text). QCA was originally developed by Justin Karneges. Contributions and reproducible bug reports are welcome at the QCA3 repository.