#pragma once #include #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(); };