CryptoSys PKI Pro Manual

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.
[PREV: padHexBlock...]   [Contents]   [Index]   
   [NEXT: padUnpadHex...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.