2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QCRYPTOGRAPHICHASH_H
|
|
|
|
#define GEN_QCRYPTOGRAPHICHASH_H
|
|
|
|
|
|
|
|
#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 QByteArray;
|
|
|
|
class QCryptographicHash;
|
|
|
|
class QIODevice;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QCryptographicHash QCryptographicHash;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
#endif
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QCryptographicHash* QCryptographicHash_new(int method);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QCryptographicHash_Reset(QCryptographicHash* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QCryptographicHash_AddData(QCryptographicHash* self, const char* data, int length);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QCryptographicHash_AddDataWithData(QCryptographicHash* self, struct miqt_string data);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QCryptographicHash_AddDataWithDevice(QCryptographicHash* self, QIODevice* device);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QCryptographicHash_Result(const QCryptographicHash* self);
|
|
|
|
struct miqt_string QCryptographicHash_Hash(struct miqt_string data, int method);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QCryptographicHash_HashLength(int method);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QCryptographicHash_Delete(QCryptographicHash* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|