Method AesCrypt():prepareBuffer() Professional

Prepares a buffer for encryption.

:prepareBuffer(<cBuffer>) --> nLength
The buffer to be used for encryption. The variable holding the buffer must be passed by reference, because the length might be modified.

The length of the buffer is returned.


Because AES is a block code, a buffer must be at least as long as one block, additional space might be required depending on the operation mode.

This method must be called if the length of the buffer to encode overlaps one or multiple blocks. It is, however, automatically called by CryptFile() and CryptTable().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.