#include <CryptContext.h>
Public Member Functions | |
CCryptContext (HCRYPTPROV hCryptProv) | |
Open a context object from an existing handle. | |
operator HCRYPTPROV () | |
BOOL | AcquireContext (LPCTSTR ContainerName=NULL, LPCTSTR ProviderName=NULL, DWORD ProvType=PROV_RSA_FULL, DWORD dwFlags=0) |
BOOL | AcquireContextWithCreate (LPCTSTR ContainerName=NULL, LPCTSTR ProviderName=NULL, DWORD ProvType=PROV_RSA_FULL, DWORD dwFlags=0) |
BOOL | GetProvParam (DWORD dwParam, BYTE *pbData, DWORD *cbData, DWORD Flags=0) |
BOOL | GetUserKey (DWORD KeySpec, HCRYPTKEY *phKey) |
BOOL | GenKey (ALG_ID AlgId, HCRYPTKEY *phKey, DWORD Flags=0) |
BOOL | GenRandom (DWORD dwLen, BYTE *pbBuffer) |
BOOL | ImportKey (BYTE *pbData, DWORD dwDataLen, HCRYPTKEY *phKey, HCRYPTKEY hPubKey=NULL, DWORD dwFlags=0) |