CryptoSys API Library Manual
padBytesBlock
Creates an input block suitably padded for encryption by a block cipher in ECB or CBC mode.
Syntax
[VBA]
Public Function padBytesBlock ( _
lpInput() As Byte, _
nBlkLen As Long, _
Optional nOptions As Long = 0 _
) As Byte()
Parameters
- lpInput
- Plaintext bytes to be padded.
- nBlkLen
- Cipher block length in bytes (8 or 16).
- nOptions
- Use 0 for default PKCS5 padding or select one of:
API_PAD_1ZERO
API_PAD_AX923
API_PAD_W3C
Return Value
Byte(): Padded data in byte array.