Click or drag to resize

Aes256Decrypt(Byte, Byte, Mode, Byte) Method

Decrypt data in byte array

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static byte[] Decrypt(
	byte[] input,
	byte[] key,
	Mode mode,
	byte[] iv
)

Parameters

input  Byte
Input data
key  Byte
Key of exactly 32 bytes (256 bits)
mode  Mode
Cipher Mode
iv  Byte
IV of exactly 16 bytes or null/Nothing for ECB mode

Return Value

Byte
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 (16 bytes)
See Also