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// Qt-Security score:significant reason:default
4
5#ifndef QPASSWORDDIGESTOR_H
6#define QPASSWORDDIGESTOR_H
7
8#if 0
9#pragma qt_class(QPasswordDigestor)
10#endif
11
12#include <QtNetwork/qtnetworkglobal.h>
13#include <QtCore/QByteArray>
14#include <QtCore/QCryptographicHash>
15
16QT_BEGIN_NAMESPACE
17
18namespace QPasswordDigestor {
19Q_NETWORK_EXPORT QByteArray deriveKeyPbkdf1(QCryptographicHash::Algorithm algorithm,
20 const QByteArray &password, const QByteArray &salt,
21 int iterations, quint64 dkLen);
22Q_NETWORK_EXPORT QByteArray deriveKeyPbkdf2(QCryptographicHash::Algorithm algorithm,
23 const QByteArray &password, const QByteArray &salt,
24 int iterations, quint64 dkLen);
25} // namespace QPasswordDigestor
26
27QT_END_NAMESPACE
28
29#endif // QPASSWORDDIGESTOR_H
30

source code of qtbase/src/network/ssl/qpassworddigestor.h