1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-27 08:57:45 +00:00
kawari/src/blowfish/wrapper.h

22 lines
429 B
C
Raw Normal View History

#include <cstdint>
extern "C"
{
typedef void *BlowfishHandle;
#define DWORD uint32_t
#define WORD unsigned short
#define BYTE uint8_t
struct ExpandedKey
{
DWORD *PArray;
DWORD (*SBoxes)
[256];
};
BYTE *blowfish_encode(BYTE *key, uint32_t keybytes, BYTE *pInput, DWORD lSize);
BYTE *blowfish_decode(BYTE *key, uint32_t keybytes, BYTE *pInput, DWORD lSize);
//__declspec(dllexport) void destroy(BlowFish hanle);
}