 |
CryptCreateHash ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The CryptCreateHash function initiates the hashing of a stream of data. It creates and returns to the calling application a handle to a CSP hash object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI CryptCreateHash(
HCRYPTPROV hProv,
ALG_ID Algid,
HCRYPTKEY hKey,
DWORD dwFlags,
HCRYPTHASH* phHash
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CryptCreateHash IN advapi32;
INTEGER hProv,;
INTEGER Algid,;
INTEGER hKey,;
INTEGER dwFlags,;
INTEGER @ phHash
|
 |
 |
 |
| Parameters: |
 |
hProv
[in] Handle of a cryptographic service provider (CSP) created by a call to CryptAcquireContext.
Algid
[in] ALG_ID that identifies the hash algorithm to use.
hKey
[in] If the type of hash algorithm is a keyed hash, such as the HMAC or MAC algorithm, the key for the hash is passed in this parameter. For nonkeyed algorithms, this parameter must be set to zero.
dwFlags
[in] Reserved for future use and must be zero.
phHash
[out] Address to which the function copies a handle to the new hash object. |
 |
 |
| Return value: |
 |
| If the function succeeds, the function returns TRUE. |
 |
 |
| My comment: |
 |
The phHash handle is used in subsequent calls to CryptHashData and CryptHashSessionKey to hash session keys and other streams of data.
When you have finished using the hash object, release the handle by calling the CryptDestroyHash function. |
 |
 |
| Word Index links for the CryptCreateHash : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-08-16 09:18:17 | | Modified: | 2004-08-16 09:22:06 | Visited in last 7 days: 23 |