CryptoSys PKI Toolkit Manual
Cipher.Pad Method (Byte[], CipherAlgorithm)
Pads byte array to correct length for ECB and CBC encryption
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/CMS method of padding
See Also
VB6/C equivalent: PAD_BytesBlock
[Contents] [Index]