1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* blowfish.c (burn_stack), cast5.c (burn_stack), des.c (burn_stack), md5.c

(burn_stack), random.c (burn_stack, read_pool, fast_random_poll),
rijndael.c (burn_stack), rmd160.c (burn_stack), rndegd.c
(rndegd_gather_random), rndlinux.c (rndlinux_gather_random), rndriscos.c
(rndriscos_gather_random), sha1.c (burn_stack), tiger.c (burn_stack),
twofish.c (burn_stack): Replace various calls to memset() with the more
secure wipememory().
This commit is contained in:
David Shaw 2002-11-06 15:28:12 +00:00
parent 666dcb370b
commit 90279250e8
14 changed files with 29 additions and 15 deletions

View file

@ -221,7 +221,7 @@ rndegd_gather_random( void (*add)(const void*, size_t, int), int requester,
(*add)( buffer, n, requester );
length -= n;
}
memset(buffer, 0, sizeof(buffer) );
wipememory(buffer, sizeof(buffer) );
return 0; /* success */
}