e-CryptIt Engine Xojo Plugin

AES_CBC.FinishDecryptBlock Method

Use this function to finish decrypting and getting the final bytes as MemoryBlock after you have decrypted all of the blocks.

FinishDecryptBlock() as MemoryBlock

Parameters

Returns

MemoryBlock

Remarks

If the total size of all blocks that you encrypt is not dividable by 16 then you will get 1 to 15 unencrypted bytes at the end. Because of that then you should add 15 bytes (PaddingBlockSize-1) of random bytes to the end of the encrypted stream to ensure that all of your data gets encrypted.

After you have finished decrypting all of the blocks then you should call FinishDecrypt which will let the encryptor clean up and it will return all untouched bytes there which should be part of the random bytes if you have done as described above.

See Also

AES_CBC Class