VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-09-04 15:21:11 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:23:19 (GMT)
commitf7d783dda8405cb2c930932749ee187d127eddf2 (patch)
treeac8eb34eae968da2597cc7099115a313879b5854 /src/Crypto
parentccbc2cff0bf76f1f0d62e1778e83342e526e5eed (diff)
downloadVeraCrypt-f7d783dda8405cb2c930932749ee187d127eddf2.zip
VeraCrypt-f7d783dda8405cb2c930932749ee187d127eddf2.tar.gz
Adapt certain functions in the case of Windows bootloader in order to make its size as small as possible.
Diffstat (limited to 'src/Crypto')
-rw-r--r--src/Crypto/Rmd160.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Crypto/Rmd160.c b/src/Crypto/Rmd160.c
index f90bf29..7441dd7 100644
--- a/src/Crypto/Rmd160.c
+++ b/src/Crypto/Rmd160.c
@@ -140,7 +140,9 @@ void RMD160Final(unsigned char *digest, RMD160_CTX *ctx)
if (digest) {
for (i = 0; i < 5; i++)
PUT_32BIT_LE(digest + i * 4, ctx->state[i]);
+#ifndef TC_WINDOWS_BOOT
burn (ctx, sizeof(*ctx));
+#endif
}
}