mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
22 lines
337 B
C
22 lines
337 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <windows.h>
|
||
|
#include "CryptoContext.h"
|
||
|
|
||
|
class CKeyPair
|
||
|
{
|
||
|
private:
|
||
|
HCRYPTKEY m_hCryptKey;
|
||
|
CCryptoContext* m_pContext;
|
||
|
|
||
|
public:
|
||
|
CKeyPair(CCryptoContext* pContext);
|
||
|
~CKeyPair(void);
|
||
|
|
||
|
void LoadFromMemory(DWORD dwPubKeySize, BYTE* pbPubKeyBlob, BYTE bytXORKey);
|
||
|
void ReleaseKey();
|
||
|
|
||
|
HCRYPTKEY GetContainer();
|
||
|
};
|