diff options
Diffstat (limited to 'src/util/crypto_edx25519.c')
-rw-r--r-- | src/util/crypto_edx25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_edx25519.c b/src/util/crypto_edx25519.c index f3c3c33df..775b64190 100644 --- a/src/util/crypto_edx25519.c +++ b/src/util/crypto_edx25519.c | |||
@@ -337,7 +337,7 @@ GNUNET_CRYPTO_edx25519_public_key_derive ( | |||
337 | struct GNUNET_CRYPTO_Edx25519PublicKey *result) | 337 | struct GNUNET_CRYPTO_Edx25519PublicKey *result) |
338 | { | 338 | { |
339 | struct GNUNET_HashCode hc; | 339 | struct GNUNET_HashCode hc; |
340 | uint8_t h[crypto_core_ed25519_SCALARBYTES] = { 0 }; | 340 | uint8_t h[64] = { 0 }; |
341 | 341 | ||
342 | derive_h (pub, | 342 | derive_h (pub, |
343 | seed, | 343 | seed, |
@@ -345,7 +345,7 @@ GNUNET_CRYPTO_edx25519_public_key_derive ( | |||
345 | &hc); | 345 | &hc); |
346 | memcpy (h, | 346 | memcpy (h, |
347 | &hc, | 347 | &hc, |
348 | crypto_core_ed25519_SCALARBYTES); | 348 | 64); |
349 | crypto_core_ed25519_scalar_reduce (h, | 349 | crypto_core_ed25519_scalar_reduce (h, |
350 | h); | 350 | h); |
351 | GNUNET_assert (0 == crypto_scalarmult_ed25519_noclamp (result->q_y, | 351 | GNUNET_assert (0 == crypto_scalarmult_ed25519_noclamp (result->q_y, |