Removes the padding from an encryption block
public static byte[] Unpad( byte[] data )
Public Shared Function Unpad ( _ data As Byte() _ ) As Byte()
Unpadded data in byte array or unchanged data on error
Padding 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.