CryptoSys API Library Manual
cipherUpdate
Encrypts or decrypts a chunk of input (in incremental mode).
Syntax
[VBA]
Public Function cipherUpdate ( _
hContext As Long, _
lpData() As Byte _
) As Byte()
Parameters
- hContext
- Handle to the CIPHER context.
- lpData
- Input data to be processed.
Return Value
Byte(): Encrypted/decrypted block the same length as the input, or an empty array on error.
Remarks
The input byte array must be a length exactly a multiple of the block size, except for the last chunk in CTR/OFB/CFB mode.
Input in ECB/CBC mode must be suitably padded to the correct length.