Click or drag to resize

Aes256FileDecrypt(String, String, Byte, Mode, Byte, CipherFileOption) Method

Decrypt a file with advanced options

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static int FileDecrypt(
	string fileOut,
	string fileIn,
	byte[] key,
	Mode mode,
	byte[] iv,
	CipherFileOption advOptions
)

Parameters

fileOut  String
Name of output file to be created or overwritten
fileIn  String
Name of input file
key  Byte
Key of exactly 32 bytes (256 bits)
mode  Mode
Cipher Mode
iv  Byte
IV of exactly 16 bytes. Use null/Nothing for ECB mode or when using CipherFileOption.PrefixIV option
advOptions  CipherFileOption
Advanced options. See CipherFileOption.

Return Value

Int32
Zero (0) if successful; otherwise it returns a nonzero error code
Remarks
fileOut and fileIn must not be the same
See Also