|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
1.1.1.4 ! 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_Common_Wipe
10: #define TC_HEADER_Common_Wipe
11:
12: #include "Tcdefs.h"
13:
14: #ifdef __cplusplus
15: extern "C" {
16: #endif
17:
18: typedef enum
19: {
20: /* WARNING: As these values are written to config files, if they or their meanings
21: are changed, incompatiblity with other versions may arise (upgrade, downgrade, etc.).
22: When adding a new constant, verify that the value is unique within this block. */
23: TC_WIPE_NONE = 0,
1.1.1.3 root 24: TC_WIPE_1_RAND = 100,
1.1 root 25: TC_WIPE_3_DOD_5220 = 300,
26: TC_WIPE_7_DOD_5220 = 700,
27: TC_WIPE_35_GUTMANN = 3500
28:
29: } WipeAlgorithmId;
30:
31: #define TC_WIPE_RAND_CHAR_COUNT 3
32:
33: size_t GetWipePassCount (WipeAlgorithmId algorithm);
34: BOOL WipeBuffer (WipeAlgorithmId algorithm, byte randChars[TC_WIPE_RAND_CHAR_COUNT], int pass, byte *buffer, size_t size);
35:
36: #ifdef __cplusplus
37: }
38: #endif
39:
40: #endif // TC_HEADER_Common_Wipe
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.