oweals/gnunet.git
8 years ago-indenting and doxygen
Christian Grothoff [Mon, 20 Jun 2016 21:51:44 +0000 (21:51 +0000)]
-indenting and doxygen

8 years agoconvering revocation_api.c to new MQ API
Christian Grothoff [Mon, 20 Jun 2016 20:24:29 +0000 (20:24 +0000)]
convering revocation_api.c to new MQ API

8 years ago-tolerate init CB being NULL from the beginning
Christian Grothoff [Mon, 20 Jun 2016 20:12:52 +0000 (20:12 +0000)]
-tolerate init CB being NULL from the beginning

8 years agoconvering nse_api.c to new MQ API
Christian Grothoff [Mon, 20 Jun 2016 19:56:20 +0000 (19:56 +0000)]
convering nse_api.c to new MQ API

8 years ago-fix off-by-1
Christian Grothoff [Mon, 20 Jun 2016 19:55:38 +0000 (19:55 +0000)]
-fix off-by-1

8 years agolog
Florian Dold [Mon, 20 Jun 2016 15:36:05 +0000 (15:36 +0000)]
log

8 years agoadapt set test case to new scheduler semantics
Florian Dold [Mon, 20 Jun 2016 15:18:00 +0000 (15:18 +0000)]
adapt set test case to new scheduler semantics

8 years agolog error when timed out
Florian Dold [Mon, 20 Jun 2016 15:01:38 +0000 (15:01 +0000)]
log error when timed out

8 years ago-fix format warning
Martin Schanzenbach [Mon, 20 Jun 2016 09:52:52 +0000 (09:52 +0000)]
-fix format warning

8 years ago- fix warnings
Martin Schanzenbach [Mon, 20 Jun 2016 09:49:01 +0000 (09:49 +0000)]
- fix warnings

8 years agouse c99
Christian Grothoff [Mon, 20 Jun 2016 08:19:49 +0000 (08:19 +0000)]
use c99

8 years ago-force c99
Christian Grothoff [Mon, 20 Jun 2016 08:14:56 +0000 (08:14 +0000)]
-force c99

8 years ago- fix warnings
Martin Schanzenbach [Mon, 20 Jun 2016 07:10:59 +0000 (07:10 +0000)]
- fix warnings

8 years ago-fix FTBFS
Christian Grothoff [Mon, 20 Jun 2016 05:58:11 +0000 (05:58 +0000)]
-fix FTBFS

8 years agoavoid deprecated API, use new connecT API
Christian Grothoff [Sun, 19 Jun 2016 22:53:13 +0000 (22:53 +0000)]
avoid deprecated API, use new connecT API

8 years agoavoid assertion on NULL mq
Christian Grothoff [Sun, 19 Jun 2016 22:45:09 +0000 (22:45 +0000)]
avoid assertion on NULL mq

8 years agoproper shutdown
Christian Grothoff [Sun, 19 Jun 2016 22:40:01 +0000 (22:40 +0000)]
proper shutdown

8 years ago-incorrect comment
Christian Grothoff [Sun, 19 Jun 2016 22:39:40 +0000 (22:39 +0000)]
-incorrect comment

8 years ago-use new connecT API
Christian Grothoff [Sun, 19 Jun 2016 22:39:22 +0000 (22:39 +0000)]
-use new connecT API

8 years ago-assert on task
Christian Grothoff [Sun, 19 Jun 2016 22:39:09 +0000 (22:39 +0000)]
-assert on task

8 years ago-fix gnunet-revocation
Christian Grothoff [Sun, 19 Jun 2016 22:38:29 +0000 (22:38 +0000)]
-fix gnunet-revocation

8 years ago-fix the fix
Christian Grothoff [Sun, 19 Jun 2016 22:26:35 +0000 (22:26 +0000)]
-fix the fix

8 years agoavoid changing API for now
Christian Grothoff [Sun, 19 Jun 2016 22:23:23 +0000 (22:23 +0000)]
avoid changing API for now

8 years agouse new connecT API
Christian Grothoff [Sun, 19 Jun 2016 22:16:24 +0000 (22:16 +0000)]
use new connecT API

8 years agorefactoring core API to use new MQ lib
Christian Grothoff [Sun, 19 Jun 2016 21:29:20 +0000 (21:29 +0000)]
refactoring core API to use new MQ lib

8 years ago-fix typo
Christian Grothoff [Sun, 19 Jun 2016 19:01:21 +0000 (19:01 +0000)]
-fix typo

8 years agoredefine GNUNET_MQ_queue_for_connection_client to capture client handle
Christian Grothoff [Sun, 19 Jun 2016 18:50:00 +0000 (18:50 +0000)]
redefine GNUNET_MQ_queue_for_connection_client to capture client handle

8 years ago-fix
Martin Schanzenbach [Sat, 18 Jun 2016 21:49:23 +0000 (21:49 +0000)]
-fix

8 years ago-indentation and comments
Christian Grothoff [Sat, 18 Jun 2016 21:20:00 +0000 (21:20 +0000)]
-indentation and comments

8 years agoupdate secretsharing to new MQ API
Christian Grothoff [Sat, 18 Jun 2016 21:19:27 +0000 (21:19 +0000)]
update secretsharing to new MQ API

8 years agofix consensus to match new MQ API -- and correct CONCLUDE_DONE to be fixed-size
Christian Grothoff [Sat, 18 Jun 2016 21:07:25 +0000 (21:07 +0000)]
fix consensus to match new MQ API -- and correct CONCLUDE_DONE to be fixed-size

8 years agofix RPS to match new MQ API -- and to check message format
Christian Grothoff [Sat, 18 Jun 2016 21:01:02 +0000 (21:01 +0000)]
fix RPS to match new MQ API -- and to check message format

8 years ago-fixing part of Martin's FTBFS
Christian Grothoff [Sat, 18 Jun 2016 20:38:04 +0000 (20:38 +0000)]
-fixing part of Martin's FTBFS

8 years agoadapt peerstore API to new MQ API
Christian Grothoff [Sat, 18 Jun 2016 20:26:06 +0000 (20:26 +0000)]
adapt peerstore API to new MQ API

8 years agoconvert conversation_api_call.c
Christian Grothoff [Sat, 18 Jun 2016 20:07:17 +0000 (20:07 +0000)]
convert conversation_api_call.c

8 years ago-fix
Martin Schanzenbach [Sat, 18 Jun 2016 20:04:18 +0000 (20:04 +0000)]
-fix

8 years ago- fix more rest and jsonapi
Martin Schanzenbach [Sat, 18 Jun 2016 19:31:00 +0000 (19:31 +0000)]
- fix more rest and jsonapi

8 years agopartial refactoring, will cause FTBFS, to be completed ASAP
Christian Grothoff [Sat, 18 Jun 2016 18:49:13 +0000 (18:49 +0000)]
partial refactoring, will cause FTBFS, to be completed ASAP

8 years ago- fix rest plugin
Martin Schanzenbach [Sat, 18 Jun 2016 18:16:22 +0000 (18:16 +0000)]
- fix rest plugin

8 years ago- revert to r37134. Broken build
Martin Schanzenbach [Sat, 18 Jun 2016 18:03:42 +0000 (18:03 +0000)]
- revert to r37134. Broken build

8 years agoplugin datastore mysql
Christophe Genevey Metat [Fri, 17 Jun 2016 15:28:55 +0000 (15:28 +0000)]
plugin datastore mysql

8 years agoFix perf_crypto_rsa.c after various changes
Jeff Burdges [Tue, 14 Jun 2016 02:50:39 +0000 (02:50 +0000)]
Fix perf_crypto_rsa.c after various changes

Not perfect, but some functionality is nolonger exposed.

8 years ago-rps: merge duplicate functions
Julius Bünger [Mon, 13 Jun 2016 22:46:05 +0000 (22:46 +0000)]
-rps: merge duplicate functions

8 years ago-rps: open channel when inserting peer in view
Julius Bünger [Mon, 13 Jun 2016 21:44:38 +0000 (21:44 +0000)]
-rps: open channel when inserting peer in view

8 years agofix indentation, bad stack allocation of buf
Christian Grothoff [Mon, 13 Jun 2016 11:40:29 +0000 (11:40 +0000)]
fix indentation, bad stack allocation of buf

8 years agolcov test function
Christophe Genevey Metat [Mon, 13 Jun 2016 11:24:06 +0000 (11:24 +0000)]
lcov test function

8 years agofix memroy leak
Christian Grothoff [Sat, 11 Jun 2016 14:20:28 +0000 (14:20 +0000)]
fix memroy leak

8 years agofinish to fix memory leak
Christophe Genevey Metat [Fri, 10 Jun 2016 12:32:40 +0000 (12:32 +0000)]
finish to fix memory leak

8 years agofinish to fix memory leak
Christophe Genevey Metat [Fri, 10 Jun 2016 09:19:27 +0000 (09:19 +0000)]
finish to fix memory leak

8 years agofix memory leak
Christophe Genevey Metat [Thu, 9 Jun 2016 15:39:57 +0000 (15:39 +0000)]
fix memory leak

8 years agoimproved usability for gnunet-logread -f
Carlo von lynX [Thu, 9 Jun 2016 14:36:14 +0000 (14:36 +0000)]
improved usability for gnunet-logread -f

8 years agoRework the error handling for gcd(r,n) != 1 so the Taler wallet can see errors.
Jeff Burdges [Wed, 8 Jun 2016 13:37:14 +0000 (13:37 +0000)]
Rework the error handling for gcd(r,n) != 1 so the Taler wallet can see errors.

8 years agoAbstract out previous GCD(m,n)=1 commit into a single function
Jeff Burdges [Tue, 7 Jun 2016 19:06:46 +0000 (19:06 +0000)]
Abstract out previous GCD(m,n)=1 commit into a single function

This should make it easier to report properly in the wallet.

8 years agoVerify that GCD(m,n) != 1 when n is an RSA modulus
Jeff Burdges [Tue, 7 Jun 2016 18:32:25 +0000 (18:32 +0000)]
Verify that GCD(m,n) != 1 when n is an RSA modulus

Much thanks to CodesInChaos <codesinchaos@gmail.com> from the
cryptography@metzdowd.com list for observing this flaw!

On Tue, 2016-06-07 at 13:39 +0200, CodesInChaos wrote:
> How do you handle the case where GCD(m, n) != 1 where m is the message
> (i.e. the full domain hash) and n the modulus? Do you reject that
> message and generate a new one?

If I understand the attack you have in mind, it goes roughly :

First, an evil exchange creates a 2048 bit RSA key pq, but issues n = p
q r_1 r_2 ... r_k as say a 4096 bit RSA key where r_i is a smallish but
preferably not so obvious primes, like not 2, 3, or 5.

Next, our evil exchange detects and records when the various r_i appear
during blinding and spending.  As m is 4096 bits, then some always do
since we took the r_i smallish.

Each appearing r_i factor leaks I think several bits about the
customer's identity.  If enough coins are involved in a transaction,
especially say through repeated transactions, then the customer will
quickly be deanonymized.

I could've fixed this in crypto_kdf.c but I descided it was specific
to RSA, so I did it when calling the KDF.  It should be abstracted
into a common routine probably.

Also fixes a pair of memory leaks.

8 years agocheck for existing task
Christian Grothoff [Tue, 7 Jun 2016 14:48:05 +0000 (14:48 +0000)]
check for existing task

8 years agowritten function cleanup
Christophe Genevey Metat [Tue, 7 Jun 2016 13:50:08 +0000 (13:50 +0000)]
written function cleanup

8 years agosocial cli: fix shutdown
Gabor X Toth [Tue, 7 Jun 2016 12:55:00 +0000 (12:55 +0000)]
social cli: fix shutdown

8 years ago-fix & vs &&
Christian Grothoff [Tue, 7 Jun 2016 11:50:55 +0000 (11:50 +0000)]
-fix & vs &&

8 years ago-fix misc issues
Christian Grothoff [Tue, 7 Jun 2016 11:47:47 +0000 (11:47 +0000)]
-fix misc issues

8 years agostart to fix extract vsize
Christophe Genevey Metat [Tue, 7 Jun 2016 11:20:50 +0000 (11:20 +0000)]
start to fix extract vsize

8 years agostart to fix extract vsize
Christophe Genevey Metat [Tue, 7 Jun 2016 11:16:44 +0000 (11:16 +0000)]
start to fix extract vsize

8 years agofixes
Gabor X Toth [Mon, 6 Jun 2016 20:44:39 +0000 (20:44 +0000)]
fixes

8 years agofixes
Gabor X Toth [Mon, 6 Jun 2016 20:31:03 +0000 (20:31 +0000)]
fixes

8 years agofixes
Gabor X Toth [Mon, 6 Jun 2016 20:00:23 +0000 (20:00 +0000)]
fixes

8 years agodebug msgs
Gabor X Toth [Mon, 6 Jun 2016 20:00:18 +0000 (20:00 +0000)]
debug msgs

8 years agocontinue to fix extract result
Christophe Genevey Metat [Mon, 6 Jun 2016 16:11:56 +0000 (16:11 +0000)]
continue to fix extract result

8 years agostart to fix extract result
Christophe Genevey Metat [Fri, 3 Jun 2016 16:08:23 +0000 (16:08 +0000)]
start to fix extract result

8 years ago-fix #4541
Martin Schanzenbach [Fri, 3 Jun 2016 10:32:17 +0000 (10:32 +0000)]
-fix #4541

8 years agorefactoring my API
Christian Grothoff [Fri, 3 Jun 2016 09:53:10 +0000 (09:53 +0000)]
refactoring my API

8 years agostart to written extract_result
Christophe Genevey Metat [Fri, 3 Jun 2016 09:06:30 +0000 (09:06 +0000)]
start to written extract_result

8 years ago-oops, remove printf
Martin Schanzenbach [Thu, 2 Jun 2016 17:35:00 +0000 (17:35 +0000)]
-oops, remove printf

8 years ago-indent
Christian Grothoff [Thu, 2 Jun 2016 15:28:38 +0000 (15:28 +0000)]
-indent

8 years agoinvert option order for tg
Christian Grothoff [Thu, 2 Jun 2016 15:12:52 +0000 (15:12 +0000)]
invert option order for tg

8 years agoFix for #4553
Christian Grothoff [Wed, 1 Jun 2016 20:30:03 +0000 (20:30 +0000)]
Fix for #4553

8 years agofix #4546
Christian Grothoff [Wed, 1 Jun 2016 20:00:51 +0000 (20:00 +0000)]
fix #4546

8 years agoonly run tests if they are enabled
Christian Grothoff [Wed, 1 Jun 2016 17:29:59 +0000 (17:29 +0000)]
only run tests if they are enabled

8 years agofixing insert query
Christophe Genevey Metat [Wed, 1 Jun 2016 17:13:39 +0000 (17:13 +0000)]
fixing insert query

8 years agofix #4545: create directory for log file if it does not exist
Christian Grothoff [Wed, 1 Jun 2016 17:08:49 +0000 (17:08 +0000)]
fix #4545: create directory for log file if it does not exist

8 years agotaught gnunet-logread to also do what gnunet-logread-ipc used to do
Carlo von lynX [Tue, 31 May 2016 17:00:55 +0000 (17:00 +0000)]
taught gnunet-logread to also do what gnunet-logread-ipc used to do

8 years agoadded filters to gnunet-logread and an automation fix for gnunet-arm
Carlo von lynX [Tue, 31 May 2016 15:13:24 +0000 (15:13 +0000)]
added filters to gnunet-logread and an automation fix for gnunet-arm

8 years agotypo in src/identity/gnunet-identity.c
Carlo von lynX [Tue, 31 May 2016 15:13:15 +0000 (15:13 +0000)]
typo in src/identity/gnunet-identity.c

8 years agofixing query insert
Christophe Genevey Metat [Tue, 31 May 2016 13:44:31 +0000 (13:44 +0000)]
fixing query insert

8 years agofix select request
Christophe Genevey Metat [Mon, 30 May 2016 16:19:14 +0000 (16:19 +0000)]
fix select request

8 years agoTestcases for KDF mod n
Jeff Burdges [Mon, 30 May 2016 16:08:03 +0000 (16:08 +0000)]
Testcases for KDF mod n

Currently just that the result is smaller than n, maybe should do more.

8 years agoUse a uniform random number mod an RSA composites for both
Jeff Burdges [Mon, 30 May 2016 15:54:56 +0000 (15:54 +0000)]
Use a uniform random number mod an RSA composites for both
the blinding factor and the full domain hash.

This resolves an attack against the blinding factor in Taler:

There was  a call to GNUNET_CRYPTO_kdf in
  bkey = rsa_blinding_key_derive (len, bks);
that gives exactly len bits where
  len = GNUNET_CRYPTO_rsa_public_key_len (pkey);

Now r = 2^(len-1)/pkey.n is the probability that a set high bit being
okay, meaning bkey < pkey.n.  It follows that (1-r)/2 of the time bkey >
pkey.n making the effective bkey be
  bkey mod pkey.n = bkey - pkey.n
so the effective bkey has its high bit set with probability r/2.

We expect r to be close to 1/2 if the exchange is honest, but the
exchange can choose r otherwise.

In blind signing, the exchange sees
  B = bkey * S mod pkey.n
On deposit, the exchange sees S so they can compute bkey' = B/S mod
pkey.n for all B they recorded to see if bkey' has it's high bit set.
Also, note the exchange can compute 1/S efficiently since they know the
factors of pkey.n.

I suppose that happens with probability r/(1+r) if its the wrong B, not
completely sure.  If otoh we've the right B, then we've the probability
r/2 of a set high bit in the effective bkey.

Interestingly, r^2-r has a maximum at the default r=1/2 anyways, giving
the wrong and right probabilities 1/3 and 1/4, respectively.

I fear this gives the exchange a meaningful fraction of a bit of
information per coin involved in the transaction.  It sounds damaging if
numerous coins were involved.  And it could run across transactions in
some scenarios.

I suspect we need a more uniform deterministic pseudo-random number
generator for blinding factors.  Just fyi, our old call to
gcry_mpi_randomize had this same problem.

I do not believe this caused a problem for the full domain hash, but
we can fix it easily enough anyways.

8 years agocreate table for test case fixed
Christophe Genevey Metat [Mon, 30 May 2016 15:54:38 +0000 (15:54 +0000)]
create table for test case fixed

8 years ago- Fix #4532
Martin Schanzenbach [Sun, 29 May 2016 11:19:50 +0000 (11:19 +0000)]
- Fix #4532

8 years agobegin to rewritten test case
Christophe Genevey Metat [Fri, 27 May 2016 13:51:30 +0000 (13:51 +0000)]
begin to rewritten test case

8 years ago-fix
Martin Schanzenbach [Fri, 27 May 2016 11:22:25 +0000 (11:22 +0000)]
-fix

8 years ago-fix
Martin Schanzenbach [Fri, 27 May 2016 10:34:28 +0000 (10:34 +0000)]
-fix

8 years agofunction result helper rewritten
Christophe Genevey Metat [Thu, 26 May 2016 15:52:29 +0000 (15:52 +0000)]
function result helper rewritten

8 years agosketch envisioned API
Christian Grothoff [Thu, 26 May 2016 10:09:03 +0000 (10:09 +0000)]
sketch envisioned API

8 years ago-indent fixes
Christian Grothoff [Thu, 26 May 2016 10:05:04 +0000 (10:05 +0000)]
-indent fixes

8 years agofix #4536
Christian Grothoff [Wed, 25 May 2016 19:04:59 +0000 (19:04 +0000)]
fix #4536

8 years agofix warning compilation libgnunetmy
Christophe Genevey Metat [Wed, 25 May 2016 16:37:52 +0000 (16:37 +0000)]
fix warning compilation libgnunetmy

8 years ago- add peerstore tests
Martin Schanzenbach [Wed, 25 May 2016 09:54:46 +0000 (09:54 +0000)]
- add peerstore tests

8 years ago- jsonapi build fix, add peerstore flat (EXP)
Martin Schanzenbach [Tue, 24 May 2016 20:40:15 +0000 (20:40 +0000)]
- jsonapi build fix, add peerstore flat (EXP)

8 years agofixing #4483: optimize blinding key storage/transmission
Christian Grothoff [Tue, 24 May 2016 18:14:04 +0000 (18:14 +0000)]
fixing #4483: optimize blinding key storage/transmission

8 years agotest case for mysql
Christophe Genevey Metat [Tue, 24 May 2016 16:16:41 +0000 (16:16 +0000)]
test case for mysql

8 years agofix result and query helper
Christophe Genevey Metat [Tue, 24 May 2016 16:16:01 +0000 (16:16 +0000)]
fix result and query helper