CipherUnpad(Byte, CipherAlgorithm, Padding) Method |
Remove padding from an encryption block.
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static byte[] Unpad(
byte[] input,
CipherAlgorithm cipherAlg,
Padding pad
)
Public Shared Function Unpad (
input As Byte(),
cipherAlg As CipherAlgorithm,
pad As Padding
) As Byte()
Parameters
- input Byte
- padded data
- cipherAlg CipherAlgorithm
- Block cipher being used
- pad Padding
- Padding method to use
Return Value
ByteUnpadded data in byte array.
RemarksUnless pad is NoPad, the
unpadded output is always shorter than the padded input.
An error is indicated by returning the original data.
See Also