2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QMESSAGEAUTHENTICATIONCODE_H
|
|
|
|
#define GEN_QMESSAGEAUTHENTICATIONCODE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QIODevice;
|
|
|
|
class QMessageAuthenticationCode;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMessageAuthenticationCode QMessageAuthenticationCode;
|
|
|
|
#endif
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new(int method);
|
|
|
|
QMessageAuthenticationCode* QMessageAuthenticationCode_new2(int method, QByteArray* key);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageAuthenticationCode_Reset(QMessageAuthenticationCode* self);
|
|
|
|
void QMessageAuthenticationCode_SetKey(QMessageAuthenticationCode* self, QByteArray* key);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QMessageAuthenticationCode_AddData(QMessageAuthenticationCode* self, const char* data, int length);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageAuthenticationCode_AddDataWithData(QMessageAuthenticationCode* self, QByteArray* data);
|
|
|
|
bool QMessageAuthenticationCode_AddDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QMessageAuthenticationCode_Result(const QMessageAuthenticationCode* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
QByteArray* QMessageAuthenticationCode_Hash(QByteArray* message, QByteArray* key, int method);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|