Click or drag to resize

CipherFileDecrypt Method

Decrypt a file with block cipher

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,
	byte[] iv,
	CipherAlgorithm cipherAlg,
	Mode mode,
	Padding pad,
	CipherOpts opts
)

Parameters

fileOut  String
Name of output file to be created or overwritten
fileIn  String
Name of input file
key  Byte
Key of of exact length for block cipher algorithm
iv  Byte
Initialization Vector (IV) of exactly the block size or null for ECB mode
cipherAlg  CipherAlgorithm
Cipher Algorithm
mode  Mode
Cipher Mode
pad  Padding
Padding method to use (ECB and CBC modes only)
opts  CipherOpts
Advanced options

Return Value

Int32
0 if successful or nonzero error code
Remarks
fileOut and fileIn must not be the same
See Also