Click or drag to resize

CipherPad(Byte, CipherAlgorithm, Padding) Method

Pad byte array to correct length for ECB and CBC encryption.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] Pad(
	byte[] input,
	CipherAlgorithm cipherAlg,
	Padding pad = Padding.Pkcs5
)

Parameters

input  Byte
Data to be padded
cipherAlg  CipherAlgorithm
Block cipher being used
pad  Padding  (Optional)
Padding method to use (default is PKCS#5/#7)

Return Value

Byte
Padded data in byte array
See Also