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
qmessageauthenticationcode.h
Go to the documentation of this file.
1// Copyright (C) 2013 Ruslan Nigmatullin <euroelessar@yandex.ru>
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 QMESSAGEAUTHENTICATIONCODE_H
5#define QMESSAGEAUTHENTICATIONCODE_H
6
7#include <QtCore/qcryptographichash.h>
8
10
11
13class QIODevice;
14
15// implemented in qcryptographichash.cpp
16class Q_CORE_EXPORT QMessageAuthenticationCode
17{
18public:
19#if QT_CORE_REMOVED_SINCE(6, 6)
21 const QByteArray &key);
22#endif
24 QByteArrayView key = {});
25
27 : d{std::exchange(other.d, nullptr)} {}
29
30 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QMessageAuthenticationCode)
33
34 void reset() noexcept;
35
36#if QT_CORE_REMOVED_SINCE(6, 6)
37 void setKey(const QByteArray &key);
38#endif
39 void setKey(QByteArrayView key) noexcept;
40
41 void addData(const char *data, qsizetype length);
42#if QT_CORE_REMOVED_SINCE(6, 6)
43 void addData(const QByteArray &data);
44#endif
45 void addData(QByteArrayView data) noexcept;
46 bool addData(QIODevice *device);
47
48 QByteArrayView resultView() const noexcept;
49 QByteArray result() const;
50
51#if QT_CORE_REMOVED_SINCE(6, 6)
52 static QByteArray hash(const QByteArray &message, const QByteArray &key,
54#endif
57
58private:
59 Q_DISABLE_COPY(QMessageAuthenticationCode)
61};
62
64
65#endif
IOBluetoothDevice * device
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore \reentrant
Definition qiodevice.h:34
QMessageAuthenticationCode(QMessageAuthenticationCode &&other) noexcept
Move-constructs a new QMessageAuthenticationCode from other.
QHash< int, QWidget * > hash
[35multi]
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char * method
GLuint64 key
GLenum GLuint GLenum GLsizei length
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLsizei const GLchar * message
GLboolean reset
GLuint64EXT * result
[6]
constexpr void qt_ptr_swap(T *&lhs, T *&rhs) noexcept
Definition qswap.h:29
ptrdiff_t qsizetype
Definition qtypes.h:165
QSharedPointer< T > other(t)
[5]
this swap(other)
setKey(0)
[0]