|
|
1.1 root 1: /* 1.1.1.5 ! root 2: Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. 1.1 root 3: 1.1.1.5 ! root 4: Governed by the TrueCrypt License 2.8 the full text of which is contained in ! 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 root 28: BOOL EncryptionThreadPoolStart (); 29: void EncryptionThreadPoolStop (); 30: size_t GetEncryptionThreadCount (); 31: BOOL IsEncryptionThreadPoolRunning (); 32: 33: #ifdef __cplusplus 34: } 35: #endif 36: 37: #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.