akwizgran
1a631d9053
Simplified the expiry date logic to catch bug #35 .
...
Leaving the expiry date at 22 January until the fix is confirmed.
2014-01-24 20:50:02 +00:00
akwizgran
822392f9e7
Use strings rather than hashes to identify transports. Dev task #64 .
2014-01-24 10:39:34 +00:00
akwizgran
468db2a97b
Use a mock timer to test the database cleaner.
2014-01-16 20:17:26 +00:00
akwizgran
44bb9134d4
Reversing unintentionally pushed change: don't share Timer instances.
2014-01-16 19:31:28 +00:00
akwizgran
569b59624a
Use a daemon thread for the timer.
2014-01-16 19:15:33 +00:00
akwizgran
66619ec1e7
Use a single Timer instance.
2014-01-16 19:12:27 +00:00
akwizgran
e5353dc6d4
Replaced AuthenticatedCipher opmode with a boolean.
2014-01-16 18:59:02 +00:00
akwizgran
4ac85e955f
Deterministic signatures (RFC 6979).
2014-01-16 18:52:59 +00:00
akwizgran
f97039318a
Use integer maths to convert bits to bytes.
2014-01-16 18:02:34 +00:00
akwizgran
14e1cd6072
Normalise elliptic curve points.
2014-01-16 15:35:25 +00:00
akwizgran
a168a7ba89
Upgraded to BouncyCastle 1.50. Added bouncy -> spongy conversion script.
2014-01-16 15:21:42 +00:00
akwizgran
6af3c54c28
Removed shouldFlush() from plugins, added missing PacketWriter method.
2014-01-15 17:10:25 +00:00
akwizgran
c146da2e7a
Use SHA-384 rather than SHA-1 for PBKDF2.
2014-01-15 14:05:33 +00:00
akwizgran
941f088781
Updated Tor's GeoIP database.
2014-01-15 13:03:12 +00:00
akwizgran
db96994d5c
Simplified the serialisation format. Other task #39 .
...
The new format is simpler but less efficient for small integers, short
strings and short byte arrays.
2014-01-14 22:40:47 +00:00
akwizgran
8886d954d7
Reorganised Guice modules. Contribute entropy to pool on Linux/Android.
2014-01-14 19:33:17 +00:00
akwizgran
46863b8c1b
Log how long it takes Guice to construct its object graph.
2014-01-14 18:59:40 +00:00
akwizgran
bd980f6731
Bumped the expiry date to 22 January 2014.
2014-01-14 18:59:18 +00:00
akwizgran
6f161103ae
Log the timing of startup tasks so we can find bottlenecks.
2014-01-13 21:58:34 +00:00
akwizgran
c9928348ef
Use the Fortuna generator instead of the JVM's SecureRandom. Bug #4 .
...
Note that this is only the generator part of Fortuna, not the
accumulator. The generator requires a seed, which is provided by a
platform-specific implementation of SeedProvider. On Linux the
implementation reads the seed from /dev/urandom.
2014-01-13 19:16:33 +00:00
akwizgran
a565e0c749
Removed unused ZipUtils and unit tests.
2014-01-13 19:04:25 +00:00
akwizgran
6a03752e4b
When integers are converted to fixed length, ensure any padding is zero.
2014-01-10 15:13:09 +00:00
akwizgran
623e7330ed
Store schema version in database. Dev task #50 .
...
If the schema of the database is incompatible with the schema expected
by the code, the database throws a DbSchemaException. LifecycleManager
indicates the error to BriarService, which uses HomeScreenActivity to
show a notification and quit the app.
2014-01-09 21:00:40 +00:00
akwizgran
c779d7b95a
Inform Tor about network connectivity. Dev task #53 .
...
Note that some devices (I'm looking at you, Huawei U8110) misreport
connectivity by failing to set EXTRA_NO_CONNECTIVITY and returning true
from ConnectivityManager.getActiveNetworkInfo().isConnected() when
there's no connectivity.
2014-01-09 14:45:41 +00:00
akwizgran
0cebc42ddb
Padding now depends on screen size. Closes dev task #57 .
2014-01-09 12:42:19 +00:00
akwizgran
452f8bd7e1
Fiddled with colours for password strength meter.
2014-01-09 01:38:15 +00:00
akwizgran
ea47420e99
Add a password strength meter to SetupActivity. Dev task #42 .
2014-01-09 01:29:00 +00:00
akwizgran
1a53e9e908
Unimplemented features should show a 'Not implemented' toast. Bug #29 .
2014-01-08 17:07:51 +00:00
akwizgran
3ddfe44be3
Show feedback during setup if passwords don't match. Dev task #49 .
2014-01-08 17:01:41 +00:00
akwizgran
bacd8ec0c0
Renamed some variables to match new class names.
2014-01-08 16:37:36 +00:00
akwizgran
832476412c
Changed the root package from net.sf.briar to org.briarproject.
2014-01-08 16:18:30 +00:00
akwizgran
dce70f487c
Merged clock and os packages, moved events into their own package.
2014-01-08 15:45:02 +00:00
akwizgran
58da9c2265
Added Makefile patch for Tor binary.
2014-01-08 14:50:23 +00:00
akwizgran
c8641d1177
Added a ScrollView to SetupActivity. Fixes bug #34 .
2014-01-08 14:49:52 +00:00
akwizgran
c5b20ffba8
Recompiled Tor with OpenSSL 0.9.8h to work around bug #37 .
2014-01-08 14:27:14 +00:00
akwizgran
718ca36333
Recompiled Tor with OpenSSL 0.9.8h to work around bug #37 .
...
The latest version of libevent (2.0.21-stable) works fine.
2014-01-07 12:19:34 +00:00
akwizgran
467842e67f
If a Tor process is left behind after a crash, kill it when restarting.
2014-01-06 12:17:39 +00:00
akwizgran
413b04682f
Don't allow BriarService to restart automatically without a DB key.
...
Fixes bug #7 . The service is restarted after a crash even if
onStartCommand() returns START_NOT_STICKY, but after restarting the DB
key is not restored and so the app can't usefully proceed.
2014-01-06 10:17:06 +00:00
akwizgran
4eb1b87ed1
Fixed a moronic arithmetic mistake that was causing key parsing errors.
2014-01-05 22:31:35 +00:00
akwizgran
af28e28cd9
IllegalArgumentException is better than DbException in case of bug #3 .
...
If the app restarts after crashing and tries to return to the activity
where it crashed, DatabaseConfig's encryption key will be null and no DB
operations can be performed. It's better to crash again in that case
than for all DB operations to fail.
Fixing bug #3 will make this irrelevant.
2014-01-05 22:31:06 +00:00
akwizgran
e8b89f251f
Distinguish between max length of invitation keys and identity keys.
2014-01-05 22:21:22 +00:00
akwizgran
a8782937e9
Unwrapped a line. Because I care.
2014-01-05 21:55:07 +00:00
akwizgran
c403df0e20
Check the expiry date on first run. Fixes bug #35 .
2014-01-05 21:53:32 +00:00
akwizgran
09e16e3b34
Public key validation: check that (x, y) is not the point at infinity.
2014-01-05 21:45:01 +00:00
akwizgran
bf1a72c826
Rewrote EC key encoding and added fuzzing tests to track down bug #33 .
2014-01-05 21:25:56 +00:00
akwizgran
3779f6ea8b
Limit the number of offered messages per contact.
...
Also fixed a bug in addGroup(): SELECT COUNT (NULL) doesn't work.
2014-01-04 21:57:13 +00:00
akwizgran
fc827c191e
Bumped the expiry date to 15 January 2014.
2014-01-04 16:47:57 +00:00
akwizgran
49fda3bec5
Recompiled Tor with the latest libevent and OpenSSL.
2014-01-04 16:47:34 +00:00
akwizgran
c232d0ceb1
Asynchronous offers and requests for BMP.
...
Offered and requested message IDs are stored in the database rather than
being owned by DuplexConnections. This paves the way for moving to a
simplex transport layer.
2014-01-04 16:03:31 +00:00
akwizgran
e9d0ad97c4
Removed an unnecessary join.
2013-12-28 14:00:25 +00:00