diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-08-31 16:36:08 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-08-31 16:36:08 +0200 |
| commit | 70f185a6cd0826509d818bff6d765030a32a8943 (patch) | |
| tree | e04dccac048dcbb24999138bdebf79104800e445 /src/base/QXmppBitsOfBinaryContentId.cpp | |
| parent | 4ce75db53217849eaf3663df2256ebd55808185e (diff) | |
| download | qxmpp-70f185a6cd0826509d818bff6d765030a32a8943.tar.gz | |
BobContentId: Add BLAKE2b 256/512 algorithmns for Qt 6
Qt 6 supports BLAKE2b. BLAKE2b has no official IANA registry entry. The
name is used from XEP-0300.
Diffstat (limited to 'src/base/QXmppBitsOfBinaryContentId.cpp')
| -rw-r--r-- | src/base/QXmppBitsOfBinaryContentId.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/QXmppBitsOfBinaryContentId.cpp b/src/base/QXmppBitsOfBinaryContentId.cpp index cc66302d..f47dcc26 100644 --- a/src/base/QXmppBitsOfBinaryContentId.cpp +++ b/src/base/QXmppBitsOfBinaryContentId.cpp @@ -26,6 +26,10 @@ static const QMap<QCryptographicHash::Algorithm, QString> HASH_ALGORITHMS = { { QCryptographicHash::Sha3_256, QStringLiteral("sha3-256") }, { QCryptographicHash::Sha3_384, QStringLiteral("sha3-384") }, { QCryptographicHash::Sha3_512, QStringLiteral("sha3-512") }, +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + { QCryptographicHash::Blake2b_256, QStringLiteral("blake2b-256") }, + { QCryptographicHash::Blake2b_512, QStringLiteral("blake2b-512") }, +#endif }; class QXmppBitsOfBinaryContentIdPrivate : public QSharedData |
