use burn instead of memset when clearing RIPEMD context to ensure the compiler won't optimize it
This commit is contained in:
parent
5ebd79745d
commit
9b19baf73e
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue