Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
lecmaccalculator_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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#ifndef LECMACCALCULATOR_H
4#define LECMACCALCULATOR_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtCore/private/qglobal_p.h>
18#include <QtCore/quuid.h>
19
21
23{
24public:
27
28 static QByteArray createFullMessage(const QByteArray &message, quint32 signCounter);
29
30 quint64 calculateMac(const QByteArray &message, QUuid::Id128Bytes csrk) const;
31
32 // Convenience function.
33 bool verify(const QByteArray &message, QUuid::Id128Bytes csrk, quint64 expectedMac) const;
34
35private:
36 int m_baseSocket = -1;
37};
38
39
41
42#endif // Header guard
\inmodule QtCore
Definition qbytearray.h:57
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * message
#define Q_AUTOTEST_EXPORT
unsigned int quint32
Definition qtypes.h:50
unsigned long long quint64
Definition qtypes.h:61
\inmodule QtCore
Definition quuid.h:58