summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-08 19:58:19 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-08 19:58:19 -0400
commit649104fdb950057288a5e7b48f402d563546b83b (patch)
tree1c02fd46220a958136c319fc411205e95722538c /src
parentb08a2dc95470d448b25e52b702701b432d056d17 (diff)
downloadtor-649104fdb950057288a5e7b48f402d563546b83b.tar.gz
tor-649104fdb950057288a5e7b48f402d563546b83b.zip
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 (limited to 'src')
-rw-r--r--src/common/crypto_ed25519.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/crypto_ed25519.c b/src/common/crypto_ed25519.c
index d61549b797..abf23c4b38 100644
--- 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;