VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Wipe.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-27 02:36:23 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:21:43 +0100
commit1c11ee428d9e06be1440133f6d1163ce6c709410 (patch)
treed593910f3e6e3d2441bfd4bfe25d6e58c508a0b0 /src/Common/Wipe.c
parent97154aaf51efe787dd1678c8e1baeeb65ce46fe1 (diff)
downloadVeraCrypt-1c11ee428d9e06be1440133f6d1163ce6c709410.tar.gz
VeraCrypt-1c11ee428d9e06be1440133f6d1163ce6c709410.zip
Add option in select the number of passes for volume header over-writing. By default, it is set to 3 but it can be increased to 256 passes (which can lead to a delay of many hours for a single password change operation).
Diffstat (limited to 'src/Common/Wipe.c')
-rw-r--r--src/Common/Wipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/Wipe.c b/src/Common/Wipe.c
index 265ac217..f06862e2 100644
--- a/src/Common/Wipe.c
+++ b/src/Common/Wipe.c
@@ -155,6 +155,9 @@ int GetWipePassCount (WipeAlgorithmId algorithm)
155 case TC_WIPE_35_GUTMANN: 155 case TC_WIPE_35_GUTMANN:
156 return 35; 156 return 35;
157 157
158 case TC_WIPE_256:
159 return 256;
160
158 default: 161 default:
159 TC_THROW_FATAL_EXCEPTION; 162 TC_THROW_FATAL_EXCEPTION;
160 } 163 }
@@ -168,6 +171,7 @@ BOOL WipeBuffer (WipeAlgorithmId algorithm, byte randChars[TC_WIPE_RAND_CHAR_COU
168 switch (algorithm) 171 switch (algorithm)
169 { 172 {
170 case TC_WIPE_1_RAND: 173 case TC_WIPE_1_RAND:
174 case TC_WIPE_256:
171 return Wipe1PseudoRandom (pass, buffer, size); 175 return Wipe1PseudoRandom (pass, buffer, size);
172 176
173 case TC_WIPE_3_DOD_5220: 177 case TC_WIPE_3_DOD_5220: