CryptoSys API Library Manual

Aes128.Unpad Method (Byte[])

Removes the padding from an encryption block

Syntax

[C#]
public static byte[] Unpad(
	byte[] data
)
[VB.NET]
Public Shared Function Unpad ( _
	data As Byte() _
) As Byte()

Parameters

data
padded data

Return Value

Unpadded data in byte array or unchanged data on error

Remarks

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.

[Contents] [Index]

[PREV: Aes128.Pad Method (String)...]   [Contents]   [Index]   
   [NEXT: Aes128.Unpad Method (String)...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.