[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 04/04: fix Bernd's signature violation discovery
From: |
gnunet |
Subject: |
[gnunet] 04/04: fix Bernd's signature violation discovery |
Date: |
Sun, 21 Aug 2022 23:58:20 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit a53dce1f8aaf497c1f7a23cf4fa3e982f9baabfb
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 21 23:58:13 2022 +0200
fix Bernd's signature violation discovery
---
src/dht/dht_api.c | 1 -
src/dht/gnunet-service-dht_neighbours.c | 4 ++--
src/util/crypto_ecc.c | 1 +
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c
index 5fa8f759f..e31ac596c 100644
--- a/src/dht/dht_api.c
+++ b/src/dht/dht_api.c
@@ -1385,7 +1385,6 @@ GNUNET_DHT_verify_path (const void *data,
"GP%u=%s\n",
j,
GNUNET_i2s (&get_path[j].pred));
-
GNUNET_CRYPTO_hash (data,
data_size,
&hs.h_data);
diff --git a/src/dht/gnunet-service-dht_neighbours.c
b/src/dht/gnunet-service-dht_neighbours.c
index 07eb1a6c1..025f22c86 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1965,8 +1965,8 @@ handle_dht_p2p_put (void *cls,
: (const char *) &put_path[putlen];
size_t var_meta_size
= putlen * sizeof(struct GNUNET_DHT_PathElement)
- + has_path ? sizeof (*last_sig) : 0
- + truncated ? sizeof (*trunc_peer) : 0;
+ + (has_path ? sizeof (*last_sig) : 0)
+ + (truncated ? sizeof (*trunc_peer) : 0);
struct GNUNET_DATACACHE_Block bd = {
.key = put->key,
.expiration_time = GNUNET_TIME_absolute_ntoh (put->expiration_time),
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 5b1b579ec..0e73078bd 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -695,6 +695,7 @@ GNUNET_CRYPTO_eddsa_verify_ (
return GNUNET_SYSERR; /* purpose mismatch */
BENCHMARK_START (eddsa_verify);
+
res = crypto_sign_verify_detached (s, m, mlen, pub->q_y);
BENCHMARK_END (eddsa_verify);
return (res == 0) ? GNUNET_OK : GNUNET_SYSERR;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.