[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -only need to copy 32 bytes
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -only need to copy 32 bytes |
Date: |
Tue, 26 Apr 2022 17:27:53 +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 6371a8d7e -only need to copy 32 bytes
6371a8d7e is described below
commit 6371a8d7e8eccca6a8763431c4eb20234481cd4a
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Apr 26 17:27:47 2022 +0200
-only need to copy 32 bytes
---
contrib/gana | 2 +-
src/util/crypto_edx25519.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/gana b/contrib/gana
index f2babbbdd..0958add54 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit f2babbbdd477eeafb17292e16f335226ea02cb6a
+Subproject commit 0958add542378a6ca9c411e2dc19527834e9f645
diff --git a/src/util/crypto_edx25519.c b/src/util/crypto_edx25519.c
index 775b64190..f3c3c33df 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[64] = { 0 };
+ uint8_t h[crypto_core_ed25519_SCALARBYTES] = { 0 };
derive_h (pub,
seed,
@@ -345,7 +345,7 @@ GNUNET_CRYPTO_edx25519_public_key_derive (
&hc);
memcpy (h,
&hc,
- 64);
+ crypto_core_ed25519_SCALARBYTES);
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: -only need to copy 32 bytes,
gnunet <=