Browse Source

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.
Nick Mathewson 7 years ago
parent
commit
649104fdb9
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/common/crypto_ed25519.c

+ 0 - 1
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;