padUnpadHex
Removes the padding from a hex-encoded encryption block.
Syntax
[VBA]
Public Function padUnpadHex ( _
szInput As String, _
nBlkLen As Long, _
Optional nOptions As Long = 0 _
) As String
Parameters
- szInput
- Hex-encoded 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
String: Unpadded data in hex-encoded string 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.