CryptoSys PKI Pro Manual

Cipher.Pad Method (Byte[], CipherAlgorithm)

Pad byte array to correct length for ECB and CBC encryption (PKCS#5/#7 padding).

Syntax

[C#]
public static byte[] Pad(
	byte[] input,
	CipherAlgorithm cipherAlg
)
[VB.NET]
Public Shared Function Pad ( _
	input As Byte(), _
	cipherAlg As CipherAlgorithm _
) As Byte()

Parameters

input
data to be padded
cipherAlg
Type: CipherAlgorithm
Block cipher being used

Return Value

padded data in byte array

Remarks

Uses PKCS#5/#7 method of padding

See Also

VB6/C equivalent: PAD_BytesBlock

[Contents] [Index]

[PREV: Cipher.KeyWrap Method...]   [Contents]   [Index]   
   [NEXT: Cipher.Pad Method (Byte, CipherAlgorithm, Padding)...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-10-01T09:03:20Z.