CryptoSys API Library Manual

Tdea.FileDecrypt Method (String, String, Byte[], Mode, Byte[], CipherFileOption)

Decrypt a file with advanced options

Syntax

[C#]
public static int FileDecrypt(
	string fileOut,
	string fileIn,
	byte[] key,
	Mode mode,
	byte[] iv,
	CipherFileOption advOptions
)
[VB.NET]
Public Shared Function FileDecrypt ( _
	fileOut As String, _
	fileIn As String, _
	key As Byte(), _
	mode As Mode, _
	iv As Byte(), _
	advOptions As CipherFileOption _
) As Integer

Parameters

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

Return Value

Zero (0) if successful; otherwise it returns a nonzero error code

Remarks

fileOut and fileIn must not be the same

See Also

VB6/C equivalent: TDEA_FileExt

[Contents] [Index]

[PREV: Tdea.FileDecrypt Method (String, String, Byte, Mode, Byte)...]   [Contents]   [Index]   
   [NEXT: Tdea.FileDecrypt Method (String, String, String, Mode, String)...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.