|
|
1.1 root 1: /* 1.1.1.6 ! root 2: Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved. 1.1 root 3: 1.1.1.6 ! root 4: Governed by the TrueCrypt License 3.0 the full text of which is contained in 1.1.1.5 root 5: the file License.txt included in TrueCrypt binary and source code distribution 6: packages. 1.1 root 7: */ 8: 9: #ifndef TC_HEADER_ENCRYPTION_THREAD_POOL 10: #define TC_HEADER_ENCRYPTION_THREAD_POOL 11: 12: #include "Tcdefs.h" 13: #include "Crypto.h" 14: 15: #ifdef __cplusplus 16: extern "C" { 17: #endif 18: 19: typedef enum 20: { 21: EncryptDataUnitsWork, 22: DecryptDataUnitsWork, 23: DeriveKeyWork 24: } EncryptionThreadPoolWorkType; 25: 26: void EncryptionThreadPoolBeginKeyDerivation (TC_EVENT *completionEvent, TC_EVENT *noOutstandingWorkItemEvent, LONG *completionFlag, LONG *outstandingWorkItemCount, int pkcs5Prf, char *password, int passwordLength, char *salt, int iterationCount, char *derivedKey); 1.1.1.4 root 27: void EncryptionThreadPoolDoWork (EncryptionThreadPoolWorkType type, byte *data, const UINT64_STRUCT *startUnitNo, uint32 unitCount, PCRYPTO_INFO cryptoInfo); 1.1.1.6 ! root 28: BOOL EncryptionThreadPoolStart (size_t encryptionFreeCpuCount); 1.1 root 29: void EncryptionThreadPoolStop (); 30: size_t GetEncryptionThreadCount (); 1.1.1.6 ! root 31: size_t GetMaxEncryptionThreadCount (); 1.1 root 32: BOOL IsEncryptionThreadPoolRunning (); 33: 34: #ifdef __cplusplus 35: } 36: #endif 37: 38: #endif // TC_HEADER_ENCRYPTION_THREAD_POOL
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.