aboutsummaryrefslogtreecommitdiff
path: root/src/util
AgeCommit message (Collapse)Author
2018-06-09remove crypto_bug.cChristian Grothoff
2018-06-07paragraph for gnunet devs that don't know how to use the webpsyc://loupsycedyglgamf.onion/~lynX
2018-06-07config: file name expansion in all -f casesJulius Bünger
2018-06-07glitch in the license text detected by hyazinthe, thank you!psyc://loupsycedyglgamf.onion/~lynX
2018-06-06second batch complete. WE ARE AFFERO AGPL NOW!psyc://loupsycedyglgamf.onion/~lynX
2018-06-05first batch of license fixes (boring)psyc://loupsycedyglgamf.onion/~lynX
2018-06-06whitespaceChristian Grothoff
2018-06-06changes for AGPL handlingChristian Grothoff
2018-06-05update gitignoreChristian Grothoff
2018-06-05typoChristian Grothoff
2018-06-04merge benchmark changesChristian Grothoff
2018-06-04add function for getopt uint16_t argumentsChristian Grothoff
2018-05-31Niibe writes:Christian Grothoff
Sorry, I was not reading the code of GNUnet well. I overlooked how the eddsa_d_to_a function was written and its intention. I read it again. Indeed, the eddsa_d_to_a function tries to handle the case where gcry_mpi_print returns rawmpilen < 32, putting "left pad" by DIGEST. The problem is: DIGEST is not cleared (although comment says so). I think that the stack had zero-byte for some reason on your 32-bit machine. Here is the correction. Clear DIGEST, as comment says. diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 8d9091b23..280603234 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c @@ -1273,24 +1273,15 @@ eddsa_d_to_a (gcry_mpi_t d) b = 256 / 8; /* number of bytes in `d` */ + memset (hvec, 0, sizeof hvec); /* Note that we clear DIGEST so we can use it as input to left pad the key with zeroes for hashing. */ - memset (hvec, 0, sizeof hvec); + memset (digest, 0, sizeof digest); rawmpilen = sizeof (rawmpi); GNUNET_assert (0 == gcry_mpi_print (GCRYMPI_FMT_USG, rawmpi, rawmpilen, &rawmpilen, d)); - if (rawmpilen < 32) - { - memmove (rawmpi + 32 - rawmpilen, - rawmpi, - rawmpilen); - memset (rawmpi, - 0, - 32 - rawmpilen); - rawmpilen = 32; - } hvec[0].data = digest; hvec[0].off = 0; hvec[0].len = b > rawmpilen ? (b - rawmpilen) : 0; --
2018-05-30reduce loop counters to more practical levelsChristian Grothoff
2018-05-30style fixChristian Grothoff
2018-05-30Merge branch 'master' of ssh://gnunet.org/gnunetChristian Grothoff
2018-05-28add patch from Niibe Yutaka forChristian Grothoff
#5328
2018-05-23more flakes.Nils Gillmann
Signed-off-by: Nils Gillmann <ng0@n0.is>
2018-05-20do not crash on multiple CNAMEsChristian Grothoff
2018-05-20fix off-by-one error in cadet connection construction, also enforce better ↵Christian Grothoff
timeouts for retransmissions of handshake
2018-05-19disable crypto bug workaroundChristian Grothoff
2018-05-17bump loop lengthChristian Grothoff
2018-05-17work-around for crypto bug (to be documented more)Christian Grothoff
2018-05-17deduplicate code in crypto_eccChristian Grothoff
2018-05-17extend test to show crypto issueChristian Grothoff
2018-05-16log key material hashesChristian Grothoff
2018-05-13get rid of plain memcpy callsChristian Grothoff
2018-05-10more verbose loggingChristian Grothoff
2018-05-09implement new functions in libgnunetsq, clean up sqlite namestore plugin, ↵Christian Grothoff
implement flow control in namestore API and tests
2018-05-08expand test_mq testcaseChristian Grothoff
2018-05-06Switch to $GNUNET_TMP in all configuration files.Nils Gillmann
Signed-off-by: Nils Gillmann <ng0@n0.is>
2018-05-05define GNUNET_TMPChristian Grothoff
2018-05-02misc improvements to statistics and large-scale behavior of ↵Christian Grothoff
zoneimport/zonemaster
2018-04-30eliminate DHT PUT OK message by using MQ feature of calling continuation ↵Christian Grothoff
when transmission is complete
2018-04-30enable more parallelism with DHT queue, but limit to 1000 entries, then kill ↵Christian Grothoff
hard
2018-04-24clarify issueChristian Grothoff
2018-04-24do not crash if service violates IPC protocolChristian Grothoff
2018-04-10more work on gnunet-zoneimport, some bugfix in flat namestore, misc. style fixesChristian Grothoff
2018-03-31make some functions static, ensure shutdown tasks could be run repeatedly if ↵Christian Grothoff
1st shutdown did not finish the process
2018-03-08disable debug instrumentation againChristian Grothoff
2018-03-08better error reporting from schedulerChristian Grothoff
2018-03-03handle case where resolver operation is cancelled during success callbackChristian Grothoff
2018-03-03fix loggingChristian Grothoff
2018-03-03fix newline, reduce verbosityChristian Grothoff
2018-03-02better py3 supportChristian Grothoff
2018-02-01improve documentationlurchi
2018-02-01scheduler API change to allow use with js event looplurchi
- GNUNET_SCHEDUELR_run_with_driver has been replaced with GNUNET_SCHEDULER_driver_init and GNUNET_SCHEDUELR_driver_done - GNUNET_SCHEDULER_run_from_driver has been renamed to GNUNET_SCHEDULER_do_work (as it's no longer being called from a driver callback) - documentation has been updated
2018-01-30log unsent queued messages only on DEBUGFlorian Dold
2018-01-27really make GNUNET_SCHEDULER_run_from_driver more graceful (must have been late)lurchi
2018-01-24make GNUNET_SCHEDULER_run_from_driver more gracefullurchi
GNUNET_SCHEDULER_run_from_driver may now be called without any tasks being ready if the timeout has not been reached yet. A warning is printed because it may be a programming error in the driver (see comments)