|
|
1.1 root 1: /* 1.1.1.5 ! root 2: Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved. 1.1 root 3: 1.1.1.5 ! root 4: Governed by the TrueCrypt License 3.0 the full text of which is contained in 1.1.1.4 root 5: the file License.txt included in TrueCrypt binary and source code distribution 6: packages. 1.1 root 7: */ 8: 9: #ifdef __cplusplus 10: extern "C" { 11: #endif 12: 13: #include "Format.h" 14: 15: enum nonsys_inplace_enc_status 16: { 17: NONSYS_INPLACE_ENC_STATUS_NONE = 0, 18: NONSYS_INPLACE_ENC_STATUS_PREPARING, 19: NONSYS_INPLACE_ENC_STATUS_RESIZING, 20: NONSYS_INPLACE_ENC_STATUS_ENCRYPTING, 21: NONSYS_INPLACE_ENC_STATUS_FINALIZING, 22: NONSYS_INPLACE_ENC_STATUS_PAUSED, 23: NONSYS_INPLACE_ENC_STATUS_FINISHED, 24: NONSYS_INPLACE_ENC_STATUS_ERROR 25: }; 26: 27: BOOL CheckRequirementsForNonSysInPlaceEnc (const char *devicePath, BOOL silent); 28: int EncryptPartitionInPlaceBegin (volatile FORMAT_VOL_PARAMETERS *volParams, volatile HANDLE *outHandle, WipeAlgorithmId wipeAlgorithm); 29: int EncryptPartitionInPlaceResume (HANDLE dev, volatile FORMAT_VOL_PARAMETERS *volParams, WipeAlgorithmId wipeAlgorithm, volatile BOOL *bTryToCorrectReadErrors); 30: void ShowInPlaceEncErrMsgWAltSteps (char *iniStrId, BOOL bErr); 31: void SetNonSysInplaceEncUIStatus (int nonSysInplaceEncStatus); 32: int FastVolumeHeaderUpdate (HANDLE dev, CRYPTO_INFO *headerCryptoInfo, CRYPTO_INFO *masterCryptoInfo, __int64 deviceSize); 33: 1.1.1.3 root 34: static HANDLE OpenPartitionVolume (const char *devName, BOOL bExclusiveRequired, BOOL bSharedRequired, BOOL bSharedRequiresConfirmation, BOOL bShowAlternativeSteps, BOOL bSilent); 35: static int DismountFileSystem (HANDLE dev, int driveLetter, BOOL bForcedAllowed, BOOL bForcedRequiresConfirmation, BOOL bSilent); 36: static int ConcealNTFS (HANDLE dev); 1.1 root 37: BOOL SaveNonSysInPlaceEncSettings (int delta, WipeAlgorithmId wipeAlgorithm); 1.1.1.5 ! root 38: static void ExportProgressStats (__int64 bytesDone, __int64 totalSize); 1.1 root 39: int ZeroUnreadableSectors (HANDLE dev, LARGE_INTEGER startOffset, int64 size, int sectorSize, uint64 *zeroedSectorCount); 1.1.1.3 root 40: static int OpenBackupHeader (HANDLE dev, const char *devicePath, Password *password, PCRYPTO_INFO *retCryptoInfo, CRYPTO_INFO *headerCryptoInfo, __int64 deviceSize); 1.1 root 41: BOOL MoveClustersBeforeThreshold (HANDLE volumeHandle, PWSTR volumeDevicePath, int64 clusterThreshold); 42: 43: #ifdef __cplusplus 44: } 45: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.