"Fossies" - the Fresh Open Source Software Archive

Member "src/Common/Keyfiles.h" (10 Oct 2018, 1519 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Keyfiles.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  Derived from source code of TrueCrypt 7.1a, which is
    3  Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4  by the TrueCrypt License 3.0.
    5 
    6  Modifications and additions to the original source code (contained in this file)
    7  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8  and are governed by the Apache License 2.0 the full text of which is
    9  contained in the file License.txt included in VeraCrypt binary and source
   10  code distribution packages.
   11 */
   12 
   13 #ifndef KEYFILES_H
   14 #define KEYFILES_H
   15 
   16 #ifdef __cplusplus
   17 extern "C" {
   18 #endif
   19 
   20 #include "Common.h"
   21 
   22 #define KEYFILE_POOL_SIZE   64
   23 #define KEYFILE_MAX_READ_LEN    (1024*1024)
   24 
   25 typedef struct KeyFileStruct
   26 {
   27     wchar_t FileName[MAX_PATH + 1];
   28     struct KeyFileStruct *Next;
   29 } KeyFile;
   30 
   31 typedef struct
   32 {
   33     wchar_t VolumeFileName[MAX_PATH + 1];
   34     BOOL EnableKeyFiles;
   35     KeyFile *FirstKeyFile;
   36 } KeyFilesDlgParam;
   37 
   38 KeyFile *KeyFileAdd (KeyFile *firstKeyFile, KeyFile *keyFile);
   39 void KeyFileRemoveAll (KeyFile **firstKeyFile);
   40 KeyFile *KeyFileClone (KeyFile *keyFile);
   41 void KeyFileCloneAll (KeyFile *firstKeyFile, KeyFile **outputKeyFile);
   42 BOOL KeyFilesApply (HWND hwndDlg, Password *password, KeyFile *firstKeyFilem, const wchar_t* volumeFileName);
   43 
   44 BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
   45 BOOL KeyfilesPopupMenu (HWND hwndDlg, POINT popupPosition, KeyFilesDlgParam *dialogParam);
   46 
   47 extern BOOL HiddenFilesPresentInKeyfilePath;
   48 
   49 #ifdef __cplusplus
   50 }
   51 #endif
   52 
   53 #endif  /* #ifndef KEYFILES_H */