 |
CryptDeriveKey ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Generates cryptographic session keys derived from a base data value. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI CryptDeriveKey(
HCRYPTPROV hProv,
ALG_ID Algid,
HCRYPTHASH hBaseData,
DWORD dwFlags,
HCRYPTKEY* phKey
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CryptDeriveKey IN advapi32;
INTEGER hProv,;
INTEGER Algid,;
INTEGER hBaseData,;
LONG dwFlags,;
INTEGER @phKey
|
 |
 |
 |
| Parameters: |
 |
hProv
[in] A HCRYPTPROV handle of a CSP created by a call to CryptAcquireContext.
Algid
[in] An ALG_ID structure that identifies the symmetric encryption algorithm for which the key is to be generated.
hBaseData
[in] Handle to a hash object that has been fed the exact base data.
dwFlags
[in] Specifies the type of key generated.
phKey
[in, out] Address to which the function copies the handle of the newly generated key. When you have finished using the key, release the handle by calling the CryptDestroyKey function. |
 |
 |
| Return value: |
 |
| If the function succeeds, the function returns nonzero (TRUE). |
 |
 |
| Word Index links for the CryptDeriveKey : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-04-21 18:21:09 | | Modified: | 2006-04-21 18:23:09 | Visited in last 7 days: 151 |