mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
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.
This commit is contained in:
parent
b08a2dc954
commit
649104fdb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user