diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-06-03 09:09:09 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:19:13 +0100 |
commit | 9b19baf73e8c9dbd60ee36bcd1cb910bf01fa3d7 (patch) | |
tree | 4ed3dbd241fdb60485f00776908fa6a301bc2562 | |
parent | 5ebd79745d84faa9fb352ed2bc58931f37975d85 (diff) | |
download | VeraCrypt-9b19baf73e8c9dbd60ee36bcd1cb910bf01fa3d7.tar.gz VeraCrypt-9b19baf73e8c9dbd60ee36bcd1cb910bf01fa3d7.zip |
use burn instead of memset when clearing RIPEMD context to ensure the compiler won't optimize it
-rw-r--r-- | src/Crypto/Rmd160.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Crypto/Rmd160.c b/src/Crypto/Rmd160.c index cd215668..f90bf296 100644 --- a/src/Crypto/Rmd160.c +++ b/src/Crypto/Rmd160.c @@ -140,7 +140,7 @@ 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]);
- memset (ctx, 0, sizeof(*ctx));
+ burn (ctx, sizeof(*ctx));
}
}
|