1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QPASSWORDDIGESTOR_H |
5 | #define QPASSWORDDIGESTOR_H |
6 | |
7 | #if 0 |
8 | #pragma qt_class(QPasswordDigestor) |
9 | #endif |
10 | |
11 | #include <QtNetwork/qtnetworkglobal.h> |
12 | #include <QtCore/QByteArray> |
13 | #include <QtCore/QCryptographicHash> |
14 | |
15 | QT_BEGIN_NAMESPACE |
16 | |
17 | namespace QPasswordDigestor { |
18 | Q_NETWORK_EXPORT QByteArray deriveKeyPbkdf1(QCryptographicHash::Algorithm algorithm, |
19 | const QByteArray &password, const QByteArray &salt, |
20 | int iterations, quint64 dkLen); |
21 | Q_NETWORK_EXPORT QByteArray deriveKeyPbkdf2(QCryptographicHash::Algorithm algorithm, |
22 | const QByteArray &password, const QByteArray &salt, |
23 | int iterations, quint64 dkLen); |
24 | } // namespace QPasswordDigestor |
25 | |
26 | QT_END_NAMESPACE |
27 | |
28 | #endif // QPASSWORDDIGESTOR_H |
29 | |