Encrypts or decrypts a file using a specified mode. The key and initialization vector are passed as arrays of bytes.
@deprecated use CIPHER_FileEncrypt() and CIPHER_FileDecrypt() instead.
Public Declare Function AES128_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 = AES128_File(strFileOut, strFileIn, abKey(0), bEncrypt, strMode, abInitV(0), nOptions)
long __stdcall AES128_FileExt(const char *szFileOut, const char *szFileIn, const unsigned char *lpKey, int fEncrypt, const char *szMode, const unsigned char *lpIV, long nOptions);
AES128_File
.If successful, the return value is 0; otherwise it returns a non-zero error code.
Aes128.FileEncrypt Method (String, String, Byte[], Mode, Byte[], CipherFileOption)
Aes128.FileDecrypt Method (String, String, Byte[], Mode, Byte[], CipherFileOption)
For the default behaviour, see AES128_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.