aboutsummaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
* fix fmt stringChristian Grothoff2018-07-07
|
* clarify error message of #5375Christian Grothoff2018-07-01
|
* update gitignoreChristian Grothoff2018-07-01
|
* update gitignoreChristian Grothoff2018-07-01
|
* move gnunet-timeout to src/util/, fix issues related to #5375Christian Grothoff2018-07-01
|
* simplify memory allocation in plugin_namestore_flat, use cleaner signatures ↵Christian Grothoff2018-06-30
| | | | for base64 encoding/decoding functions
* update gitignoreChristian Grothoff2018-06-29
|
* fix segfaultlurchi2018-06-29
|
* add documentatioNlurchi2018-06-29
|
* Use the DNSPARSER and DNSSTUB libraries in the resolver servicelurchi2018-06-29
| | | | | | | | | | | | We are not using the libc functions anymore for forward and backup DNS resolutions and the DNSPARSER and DNSSTUB libraries instead. This has the advantage that the APIs are asynchronous now and thus multiple DNS resolutions can be done in parallel. This breaks support for Windows and other operating systems that don't use /etc/resolv.conf for defining DNS servers. For fixing this the function lookup_dns_servers can be extended with different lookup mechanisms.
* introduce API functions for duplicating the DNSPARSER record typeslurchi2018-06-29
|
* -comments: the world ain't all malepsyc://loupsycedyglgamf.onion/~lynX2018-06-27
|
* 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
| |