#include <CryptKey.h>
Public Member Functions | |
| CCryptKey () | |
| Constructs an empty key object. | |
| CCryptKey (HCRYPTKEY hCryptKey) | |
| Constructs an key object, taking control of an existing key handle. | |
| void | Destroy () |
| Destroy the key object, if created. | |
| BOOL | Gen (HCRYPTPROV hProv, ALG_ID AlgId, DWORD dwFlags=0) |
| Generate a new key. | |
| BOOL | Derive (HCRYPTPROV hProv, ALG_ID AlgId, HCRYPTHASH hBaseData, DWORD dwFlags=0) |
| Derive a key from a hash. | |
| BOOL | Import (HCRYPTPROV hProv, BYTE *pbData, DWORD dwDataLen, HCRYPTKEY hPubKey=0, DWORD dwFlags=0) |
| Import a key object from existing data. | |
| BOOL | Decrypt (BYTE *pbData, DWORD *cbData, BOOL bFinal=TRUE, HCRYPTHASH hHash=NULL, DWORD dwFlags=0) |
| Decrypt data with the given key. | |
| BOOL | Encrypt (BYTE *pbData, DWORD *cbData, DWORD cbBuf, BOOL bFinal=TRUE, HCRYPTHASH hHash=NULL, DWORD dwFlags=0) |
| Encrypt data with the given key. | |
|
||||||||||||||||||||||||
|
Decrypt data with the given key.
|
|
||||||||||||||||||||
|
Derive a key from a hash.
|
|
||||||||||||||||||||||||||||
|
Encrypt data with the given key.
|
|
||||||||||||||||
|
Generate a new key.
|
|
||||||||||||||||||||||||
|
Import a key object from existing data.
|
1.3.9.1