Removes the 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[] data
)
Public Shared Function Unpad (
data As Byte()
) As Byte()
Parameters
- data Byte
- padded data
Return Value
ByteUnpadded data in byte array or unchanged data on error
RemarksPadding is expected according to the convention in PKCS#5/#7/CMS.
An error is indicated by returning the original data which will always
be longer than the expected unpadded result.
See Also