CryptoSys API Library Manual

AES192_FileExt

Encrypts or decrypts a file using a specified mode with extended options.

@deprecated use CIPHER_FileEncrypt() and CIPHER_FileDecrypt() instead.

VBA/VB6 Syntax

Public Declare Function AES192_FileExt Lib "diCryptoSys.dll" (ByVal strFileOut As String, ByVal strFileIn As String, ByRef lpKey As Byte, ByVal bEncrypt As Boolean, ByVal strMode As String, ByRef lpInitV As Byte, ByVal nOptions As Long) As Long

nRet = AES192_FileExt(strFileOut, strFileIn, abKey(0), bEncrypt, strMode, abInitV(0), nOptions)

C/C++ Syntax

long __stdcall AES192_FileExt(const char *szFileOut, const char *szFileIn, const unsigned char *lpKey, int fEncrypt, const char *szMode, const unsigned char *lpIV, long nOptions);

Parameters

szFileOut
[in] with the full path name of the output file to be created.
szFileIn
[in] with the full path name of the input file to be processed.
lpKey
[in] array containing the key.
fEncrypt
[in] direction flag: set as ENCRYPT (True) to encrypt or DECRYPT (False) to decrypt.
szMode
[in] specifying the confidentiality mode:
"ECB" for Electronic Codebook mode,
"CBC" for Cipher Block Chaining mode,
"CFB" for 128-bit Cipher Feedback mode,
"OFB" for Output Feedback mode, or
"CTR" for Counter mode.
lpIV
[in] array containing the initialization vector (IV), or zero (0) for ECB mode.
nOptions
[in] option flags:
Zero (0) for default behaviour as per AES192_File.
API_IV_PREFIX to prepend the IV before the ciphertext in the output file (ignored for ECB mode)
API_PAD_LEAVE to leave any padding in place when decrypting (ECB and CBC modes only; ignored if encrypting)

Returns (VBA/C)

If successful, the return value is 0; otherwise it returns a non-zero error code.

.NET Equivalent

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

Remarks

Example

For the default behaviour, see AES192_File. The options are ignored if not applicable. For more information on the behaviour of the options, see Extensions to block cipher functions for files.



See Also

AES192_File

[Contents] [Index]

[PREV: AES192_File...]   [Contents]   [Index]   
   [NEXT: AES192_FileHex...]

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