Decrypt a file with block cipher
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static int FileDecrypt(
string fileOut,
string fileIn,
byte[] key,
byte[] iv,
CipherAlgorithm cipherAlg,
Mode mode,
Padding pad,
CipherOpts opts
)
Public Shared Function FileDecrypt (
fileOut As String,
fileIn As String,
key As Byte(),
iv As Byte(),
cipherAlg As CipherAlgorithm,
mode As Mode,
pad As Padding,
opts As CipherOpts
) As Integer
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
Int320 if successful or nonzero
error code
RemarksfileOut and fileIn must not be the same
See Also