summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2010-10-04 18:20:48 +0000
committerNils Durner <durner@gnunet.org>2010-10-04 18:20:48 +0000
commitf3424e6519e25c4426be35d35f22b7630cd08e27 (patch)
tree9ad6093e3948e770b46009ca30365a031c0a6da0
parentf92bb35f6b5e1a18edb7d9dfb523da02efe4332c (diff)
stronger randomness
-rw-r--r--TODO2
-rw-r--r--src/transport/gnunet-service-transport.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/TODO b/TODO
index 1a6cdcfb8..c1154ca65 100644
--- a/TODO
+++ b/TODO
@@ -8,8 +8,6 @@
- provide block-lib compatible API in gnunet_dht_service.h
- eliminate continuations in DHT API (not needed, we have auto-retransmit!)
* CORE:
- - dynamic IVs [Nils]
- - use QUALITY_NONCE
- authentication of ciphertexts [Nils]
- Jun 27 11:51:54 core-7670 ERROR Assertion failed at gnunet-service-core.c:3616.
(transport notified us that we connected to ourselves!!!)
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index c117b06da..7ae560d71 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -3244,7 +3244,7 @@ send_periodic_ping (void *cls,
}
va = GNUNET_malloc (sizeof (struct ValidationEntry) + peer_address->addrlen);
va->transport_name = GNUNET_strdup (tp->short_name);
- va->challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
+ va->challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE,
UINT_MAX);
va->send_time = GNUNET_TIME_absolute_get();
va->session = peer_address->session;
@@ -3974,7 +3974,7 @@ run_validation (void *cls,
va->chvc = chvc;
chvc->ve_count++;
va->transport_name = GNUNET_strdup (tname);
- va->challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
+ va->challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE,
UINT_MAX);
va->send_time = GNUNET_TIME_absolute_get();
va->addr = (const void*) &va[1];