..msdn Add comment W32 Constants Translate this page
Decrypts data previously encrypted using the CryptEncrypt function.|
BOOL WINAPI CryptDecrypt(
DECLARE INTEGER CryptDecrypt IN advapi32;
[in] Handle to the key to use for the decryption. An application obtains this handle by using either the CryptGenKey, CryptDeriveKey or CryptImportKey function.
[in] Handle to a hash object. If data is to be decrypted and hashed simultaneously, a handle to a hash object is passed in this parameter.
[in] Specifies whether this is the last section in a series being decrypted. This value is TRUE if this is the last or only block.
[in] Currently not used.
[in, out] Buffer that holds the data to be decrypted. After the decryption has been performed, the plaintext is placed back into this same buffer.
[in, out] Pointer to a DWORD value that indicates the length of the pbData buffer. Before calling this function, the calling application sets the DWORD value to the number of bytes to be decrypted.
|If the function succeeds, the function returns nonzero (TRUE).|
|If a large amount of data is to be decrypted, it can be done in sections. This is done by calling CryptDecrypt repeatedly. The Final parameter must be set to TRUE only on the last call to CryptDecrypt, so the decryption engine can properly finish the decryption process.|
See also: CryptEncrypt, CryptCreateHash.
|Word Index links for the CryptDecrypt :|
|Translate this page:|
Visited in last 7 days: 12
|Created: ||2006-04-25 13:22:06|
|Modified: ||2006-04-25 13:27:09|