[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -oops, fix wrong size of unreduced scala
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -oops, fix wrong size of unreduced scalar |
Date: |
Wed, 27 Apr 2022 00:34:24 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8a0b107b6 -oops, fix wrong size of unreduced scalar
8a0b107b6 is described below
commit 8a0b107b6fdcf123b0382c193b9b7c11d7badb83
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Apr 27 00:34:21 2022 +0200
-oops, fix wrong size of unreduced scalar
---
src/util/crypto_edx25519.c | 4 ++--
1 file 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 (
struct GNUNET_CRYPTO_Edx25519PublicKey *result)
{
struct GNUNET_HashCode hc;
- uint8_t h[crypto_core_ed25519_SCALARBYTES] = { 0 };
+ uint8_t h[64] = { 0 };
derive_h (pub,
seed,
@@ -345,7 +345,7 @@ GNUNET_CRYPTO_edx25519_public_key_derive (
&hc);
memcpy (h,
&hc,
- crypto_core_ed25519_SCALARBYTES);
+ 64);
crypto_core_ed25519_scalar_reduce (h,
h);
GNUNET_assert (0 == crypto_scalarmult_ed25519_noclamp (result->q_y,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -oops, fix wrong size of unreduced scalar,
gnunet <=