CryptoSys API Library Manual
 
Aes128.FileDecrypt Method (String, String, String, Mode, String)
 Decrypt a file passing key and IV as hex strings 
Syntax
[C#]
public static int FileDecrypt(
	string fileOut,
	string fileIn,
	string keyHex,
	Mode mode,
	string ivHex
)
[VB.NET]
Public Shared Function FileDecrypt ( _
	fileOut As String, _
	fileIn As String, _
	keyHex As String, _
	mode As Mode, _
	ivHex As String _
) As Integer
Parameters
  - fileOut
 
  - Name of output file to be created or overwritten
 
  - fileIn
 
  - Name of input file
 
  - keyHex
 
  - Hex-encoded key of exact length
 
  - mode
 
  - Type: Mode
Cipher Mode 
  - ivHex
 
  - Hex-encoded IV or "" for ECB mode
 
Return Value
Zero (0) if successful; otherwise it returns a nonzero 
error code 
Remarks
fileOut and fileIn must not be the same. The output file is in binary format.
See Also
VB6/C equivalent: AES128_FileHex
[Contents] [Index]