|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
1.1.1.3 ! root 4: Governed by the TrueCrypt License 2.7 the full text of which is contained
1.1 root 5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
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);
27: void EncryptionThreadPoolDoWork (EncryptionThreadPoolWorkType type, byte *data, const UINT64_STRUCT *startUnitNo, TC_LARGEST_COMPILER_UINT unitCount, PCRYPTO_INFO cryptoInfo);
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.