diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-02-10 16:35:40 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-17 11:43:03 -0400 |
commit | c940b7cf13d8ceb5705d52c215256e1de5a4e757 (patch) | |
tree | 4d3a15c7079739513dcb616383ffb82ee2d86982 /src/lib/crypt_ops | |
parent | 1c688ba925e17967fa7b2abe2a41327914421fb3 (diff) | |
download | tor-c940b7cf13d8ceb5705d52c215256e1de5a4e757.tar.gz tor-c940b7cf13d8ceb5705d52c215256e1de5a4e757.zip |
Trivial bugfixes found during TROVE investigation.
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r-- | src/lib/crypt_ops/crypto_ed25519.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_ed25519.c b/src/lib/crypt_ops/crypto_ed25519.c index 400f963898..0a442bb739 100644 --- a/src/lib/crypt_ops/crypto_ed25519.c +++ b/src/lib/crypt_ops/crypto_ed25519.c @@ -795,7 +795,7 @@ ed25519_point_is_identity_element(const uint8_t *point) int ed25519_validate_pubkey(const ed25519_public_key_t *pubkey) { - uint8_t result[32] = {9}; + uint8_t result[32] = {0}; /* First check that we were not given the identity element */ if (ed25519_point_is_identity_element(pubkey->pubkey)) { |