2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H
|
|
|
|
#define MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QIODevice;
|
|
|
|
class QMessageAuthenticationCode;
|
|
|
|
#else
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMessageAuthenticationCode QMessageAuthenticationCode;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new(int method);
|
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new2(int method, struct miqt_string key);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageAuthenticationCode_Reset(QMessageAuthenticationCode* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QMessageAuthenticationCode_SetKey(QMessageAuthenticationCode* self, struct miqt_string key);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMessageAuthenticationCode_AddData(QMessageAuthenticationCode* self, const char* data, int length);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QMessageAuthenticationCode_AddDataWithData(QMessageAuthenticationCode* self, struct miqt_string data);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QMessageAuthenticationCode_AddDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QMessageAuthenticationCode_Result(const QMessageAuthenticationCode* self);
|
|
|
|
struct miqt_string QMessageAuthenticationCode_Hash(struct miqt_string message, struct miqt_string key, int method);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|