#include <Windows.h>

#include "../Runtime/Runtime.h"

#define BLOCK_LEN 16
#define PAD_NOPAD 0
#define PAD_PKCS5 1

VOID Encrypt(PRUNTIME pRuntime, __inout PBYTE pBuffer, __in ULONG uBuffLen, __in PBYTE pKey, __in ULONG uPadding);
VOID Decrypt(PRUNTIME pRuntime, __inout PBYTE pBuffer, __in ULONG uBuffLen, __in PBYTE pKey);

VOID CalculateSHA1(PRUNTIME pRuntime, __out PBYTE pSha1Buffer, __in PBYTE pBuffer, __in ULONG uBufflen);