mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-25 12:27:12 +00:00
Add Qt libs and headers
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// Copyright (C) 2013 Ruslan Nigmatullin <euroelessar@yandex.ru>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#ifndef QMESSAGEAUTHENTICATIONCODE_H
|
||||
#define QMESSAGEAUTHENTICATIONCODE_H
|
||||
|
||||
#include <QtCore/qcryptographichash.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
class QMessageAuthenticationCodePrivate;
|
||||
class QIODevice;
|
||||
|
||||
// implemented in qcryptographichash.cpp
|
||||
class Q_CORE_EXPORT QMessageAuthenticationCode
|
||||
{
|
||||
public:
|
||||
explicit QMessageAuthenticationCode(QCryptographicHash::Algorithm method,
|
||||
const QByteArray &key = QByteArray());
|
||||
~QMessageAuthenticationCode();
|
||||
|
||||
void reset();
|
||||
|
||||
void setKey(const QByteArray &key);
|
||||
|
||||
void addData(const char *data, qsizetype length);
|
||||
void addData(const QByteArray &data);
|
||||
bool addData(QIODevice *device);
|
||||
|
||||
QByteArray result() const;
|
||||
|
||||
static QByteArray hash(const QByteArray &message, const QByteArray &key,
|
||||
QCryptographicHash::Algorithm method);
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QMessageAuthenticationCode)
|
||||
QMessageAuthenticationCodePrivate *d;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user