tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 649104fdb950057288a5e7b48f402d563546b83b
parent b08a2dc95470d448b25e52b702701b432d056d17
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue,  8 Aug 2017 19:58:19 -0400

Remove a needless memwipe.

The interior of ctx here is already wiped by
crypto_digest_free(). This memwipe call only wiped the pointer
itself, which isn't sensitive.

Diffstat:
Msrc/common/crypto_ed25519.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/common/crypto_ed25519.c b/src/common/crypto_ed25519.c @@ -468,7 +468,6 @@ ed25519_keypair_from_curve25519_keypair(ed25519_keypair_t *out, tor_assert(fast_memeq(pubkey_check.pubkey, out->pubkey.pubkey, 32)); memwipe(&pubkey_check, 0, sizeof(pubkey_check)); - memwipe(&ctx, 0, sizeof(ctx)); memwipe(sha512_output, 0, sizeof(sha512_output)); return 0;