2024-11-17 19:21:37 +13:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H
|
|
|
|
#define MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
|
2024-08-25 16:08:24 +12: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 17:15:57 +13:00
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new(int method);
|
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new2(int method, struct miqt_string key);
|
2025-02-01 13:45:16 +13:00
|
|
|
void QMessageAuthenticationCode_reset(QMessageAuthenticationCode* self);
|
|
|
|
void QMessageAuthenticationCode_setKey(QMessageAuthenticationCode* self, struct miqt_string key);
|
|
|
|
void QMessageAuthenticationCode_addData(QMessageAuthenticationCode* self, const char* data, int length);
|
|
|
|
void QMessageAuthenticationCode_addDataWithData(QMessageAuthenticationCode* self, struct miqt_string data);
|
|
|
|
bool QMessageAuthenticationCode_addDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device);
|
|
|
|
struct miqt_string QMessageAuthenticationCode_result(const QMessageAuthenticationCode* self);
|
|
|
|
struct miqt_string QMessageAuthenticationCode_hash(struct miqt_string message, struct miqt_string key, int method);
|
|
|
|
void QMessageAuthenticationCode_delete(QMessageAuthenticationCode* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2025-02-01 13:45:16 +13:00
|
|
|
#endif
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#endif
|