mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 08:20:35 +00:00
29 lines
423 B
C++
29 lines
423 B
C++
|
|
#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;
|
|
|
|
HCRYPTPROV m_hCryptProv;
|
|
|
|
public:
|
|
CCryptoContext(void);
|
|
~CCryptoContext(void);
|
|
|
|
HCRYPTPROV GetProvider();
|
|
|
|
#ifdef ARCTOOL
|
|
void GenerateRandom(DWORD dwLength, BYTE* pbBuffer);
|
|
#endif
|
|
|
|
};
|