CryptoSys API Library Manual

padHexBlock

Creates a hex-encoded input block suitably padded for encryption by a block cipher in ECB or CBC mode.

Syntax

[VBA]
Public Function padHexBlock ( _
    szInput As String, _
    nBlkLen As Long, _
    Optional nOptions As Long = 0 _
) As String

Parameters

szInput
Hexadecimal-encoded data 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

String: Padded data in byte array.
[PREV: padBytesBlock...]   [Contents]   [Index]   
   [NEXT: padHexString...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.