SA-MP/saco/archive/KeyPair.h

22 lines
337 B
C
Raw Normal View History

2023-11-08 20:29:53 +08:00
#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();
};