mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'maint-0.4.2' into maint-0.4.3
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user