SA-MP/saco/archive/CryptoContext.h

29 lines
423 B
C
Raw Normal View History

2023-11-08 20:29:53 +08:00
#pragma once
#include <windows.h>
class CCryptoContext
{
private:
static DWORD ms_dwRefCount;
static DWORD ms_dwProviderType;
static LPTSTR ms_szProviderName;
static LPTSTR ms_szContainerName;
static HMODULE ms_hAdvApi32;
2023-11-08 20:29:53 +08:00
HCRYPTPROV m_hCryptProv;
public:
CCryptoContext(void);
~CCryptoContext(void);
HCRYPTPROV GetProvider();
2024-05-23 23:22:12 +08:00
#ifdef ARCTOOL
void GenerateRandom(DWORD dwLength, BYTE* pbBuffer);
#endif
2023-11-08 20:29:53 +08:00
};