WLBufferCrypt

<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Miscellaneous Functions >

WLBufferCrypt

The WLBufferCrypt function encrypts a buffer with a given password.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow .NET function definition

 

Parameters

 

pBuffer

[in] Pointer to a buffer to encrypt.

 

BufferLength

[in] Size of buffer to encrypt.

 

pPassword

[in] Pointer to a null terminated string with the encryption password.

 

 

Return Values

 

This function has no return values.

 

 

Remarks

 

The current encryption algorithm works with block multiplication factor 4 bytes. If the length of the buffer to encrypt is not factor 4 bytes, the remaining 3, 2 or 1 bytes won't be encrypted. You might want to padd first the buffer to 4 bytes multiple (adding garbage data at the end) before calling WLBufferCrypt.

 

 

See Also

 

WLBufferDecrypt