Click or drag to resize

CipherUnpad(Byte, CipherAlgorithm, Padding) Method

Remove padding from an encryption block.

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static byte[] Unpad(
	byte[] input,
	CipherAlgorithm cipherAlg,
	Padding pad
)

Parameters

input  Byte
padded data
cipherAlg  CipherAlgorithm
Block cipher being used
pad  Padding
Padding method to use

Return Value

Byte
Unpadded data in byte array.
Remarks
Unless pad is NoPad, the unpadded output is always shorter than the padded input. An error is indicated by returning the original data.
See Also