..msdn Add comment W32 Constants Translate this page
Encrypts data. The algorithm used to encrypt the data is designated by the key held by the CSP module and is referenced by the hKey parameter.|
BOOL WINAPI CryptEncrypt(
DECLARE INTEGER CryptEncrypt IN advapi32;
[in] The handle to the encryption key. An application obtains this handle by using either the CryptGenKey or the CryptImportKey function.
[in] The handle to a hash object.
[in] A Boolean value that specifies whether this is the last section in a series being encrypted.
[in] Predefined value, can be zero.
[in, out] A pointer to a buffer that contains the plaintext to be encrypted. The plaintext in this buffer is overwritten with the ciphertext created by this function.
[in, out] A pointer to a DWORD value that , on entry, contains the length, in bytes, of the plaintext in the pbData buffer. On exit, this DWORD contains the length, in bytes, of the ciphertext written to the pbData buffer.
[in] Specifies the total size, in bytes, of the input pbData buffer.
|If the function succeeds, the function returns TRUE.|
|If a large amount of data is to be encrypted, it can be done in sections by calling CryptEncrypt repeatedly. The Final parameter is set to TRUE on the last call to CryptEncrypt so that the encryption engine can properly finish the encryption process.|
|Word Index links for the CryptEncrypt :|
|Translate this page:|
Visited in last 7 days: 45
|Created: ||2006-04-21 18:17:03|
|Modified: ||2006-04-21 18:20:44|