padUnpadBytes
Removes the padding from an encryption block.
Syntax
[VBA]
Public Function padUnpadBytes ( _
lpInput() As Byte, _
nBlkLen As Long, _
Optional nOptions As Long = 0 _
) As Byte()
Parameters
- lpInput
- Padded data.
- nBlkLen
- Cipher block length in bytes (8 or 16).
- nOptions
- Use 0 for default PKCS5 padding or select one of:
PKI_PAD_1ZERO
PKI_PAD_AX923
PKI_PAD_W3C
Return Value
Byte(): Unpadded data in byte array or unchanged data on error.
Remarks
An error is indicated by returning the original data which will always be longer than the expected unpadded result.