Decrypt data in byte array

Namespace:  CryptoSysAPI
Assembly:  diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.1.29521

Syntax

C#
public static byte[] Decrypt(
	byte[] input,
	byte[] key,
	Mode mode,
	byte[] iv
)
Visual Basic (Declaration)
Public Shared Function Decrypt ( _
	input As Byte(), _
	key As Byte(), _
	mode As Mode, _
	iv As Byte() _
) As Byte()

Parameters

input
Type: array< System..::.Byte >[]()[]
Input data
key
Type: array< System..::.Byte >[]()[]
Key of length between 1 and 56 bytes (448 bits)
mode
Type: CryptoSysAPI..::.Mode
Cipher Mode
iv
Type: array< System..::.Byte >[]()[]
IV of exactly 8 bytes or null/Nothing for ECB mode

Return Value

Decrypted data in byte array or empty array on error

Remarks

For ECB and CBC modes, input data length must be an exact multiple of the block length (8 bytes)

See Also