aboutsummaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
...
* fix another one of bad frees from JuliusChristian Grothoff2018-06-26
|
* fix bad freeChristian Grothoff2018-06-26
|
* fix several memory leaksJulius Bünger2018-06-26
|
* fix postgres version check on DebianChristian Grothoff2018-06-26
|
* fix warningChristian Grothoff2018-06-25
|
* try to solve include madnesslurchi2018-06-25
|
* indentChristian Grothoff2018-06-25
|
* fix memory leakChristian Grothoff2018-06-25
|
* reduce scopeChristian Grothoff2018-06-25
|
* move hexcode, eliminate redundant testChristian Grothoff2018-06-25
|
* fix leakChristian Grothoff2018-06-25
|
* move dns ops again, 2nd tryChristian Grothoff2018-06-25
|
* Revert "integrate dnsparser and dnsstub and tun with libgnunetutil"lurchi2018-06-25
| | | | This reverts commit 7da98cf076e9c5101244dfbbf8c3ddff045d298e.
* integrate dnsparser and dnsstub and tun with libgnunetutilChristian Grothoff2018-06-25
|
* use the asynchronous DNS resolution API (getaddrinfo_a) in the resolver modulelurchi2018-06-24
|
* config file writting silent bugg (when directory doesnt give write access) fixFeideus2018-06-24
|
* print to stderrSchanzenbach, Martin2018-06-24
|
* add newlines to log error messageSchanzenbach, Martin2018-06-24
|
* fix https://gnunet.org/bugs/view.php?id=4376Schanzenbach, Martin2018-06-24
|
* getopt blindly accepting negative input fixFeideus2018-06-24
|
* AUTOSTART renamed into START_ON_DEMAND (#4547a)psyc://loupsycedyglgamf.onion/~lynX1984-04-04
|
* ignore hostname if we have unixpathChristian Grothoff2018-06-23
|
* rename USER_SERVICE into RUN_PER_USER. thx, tg (#4548a)psyc://loupsycedyglgamf.onion/~lynX2018-06-23
|
* remove crypto_bug.cChristian Grothoff2018-06-09
|
* paragraph for gnunet devs that don't know how to use the webpsyc://loupsycedyglgamf.onion/~lynX2018-06-07
|
* config: file name expansion in all -f casesJulius Bünger2018-06-07
|
* glitch in the license text detected by hyazinthe, thank you!psyc://loupsycedyglgamf.onion/~lynX2018-06-07
|
* second batch complete. WE ARE AFFERO AGPL NOW!psyc://loupsycedyglgamf.onion/~lynX2018-06-06
|
* first batch of license fixes (boring)psyc://loupsycedyglgamf.onion/~lynX2018-06-05
|
* whitespaceChristian Grothoff2018-06-06
|
* changes for AGPL handlingChristian Grothoff2018-06-06
|
* update gitignoreChristian Grothoff2018-06-05
|
* typoChristian Grothoff2018-06-05
|
* merge benchmark changesChristian Grothoff2018-06-04
|\
| * add function for getopt uint16_t argumentsChristian Grothoff2018-06-04
| |
* | Niibe writes:Christian Grothoff2018-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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; --
* | reduce loop counters to more practical levelsChristian Grothoff2018-05-30
| |
* | style fixChristian Grothoff2018-05-30
| |
* | Merge branch 'master' of ssh://gnunet.org/gnunetChristian Grothoff2018-05-30
|\ \
| * | add patch from Niibe Yutaka forChristian Grothoff2018-05-28
| |/ | | | | | | #5328
| * more flakes.Nils Gillmann2018-05-23
| | | | | | | | Signed-off-by: Nils Gillmann <ng0@n0.is>
| * do not crash on multiple CNAMEsChristian Grothoff2018-05-20
| |
| * fix off-by-one error in cadet connection construction, also enforce better ↵Christian Grothoff2018-05-20
| | | | | | | | timeouts for retransmissions of handshake
| * disable crypto bug workaroundChristian Grothoff2018-05-19
| |
* | bump loop lengthChristian Grothoff2018-05-17
|/
* work-around for crypto bug (to be documented more)Christian Grothoff2018-05-17
|
* deduplicate code in crypto_eccChristian Grothoff2018-05-17
|
* extend test to show crypto issueChristian Grothoff2018-05-17
|
* log key material hashesChristian Grothoff2018-05-16
|
* get rid of plain memcpy callsChristian Grothoff2018-05-13
|