|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
4: Governed by the TrueCrypt License 2.4 the full text of which is contained
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,
24: TC_WIPE_3_DOD_5220 = 300,
25: TC_WIPE_7_DOD_5220 = 700,
26: TC_WIPE_35_GUTMANN = 3500
27:
28: } WipeAlgorithmId;
29:
30: #define TC_WIPE_RAND_CHAR_COUNT 3
31:
32: size_t GetWipePassCount (WipeAlgorithmId algorithm);
33: BOOL WipeBuffer (WipeAlgorithmId algorithm, byte randChars[TC_WIPE_RAND_CHAR_COUNT], int pass, byte *buffer, size_t size);
34:
35: #ifdef __cplusplus
36: }
37: #endif
38:
39: #endif // TC_HEADER_Common_Wipe
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.