Commit Graph

  • cea76cce7e Use consistent wording. akwizgran 2012-08-29 18:48:42 +01:00
  • 067af18ac4 Unit tests for OutgoingEncryptionLayer. akwizgran 2012-08-29 18:36:47 +01:00
  • 88e7cc786f If there's space for a partial final frame, use it. akwizgran 2012-08-29 18:11:30 +01:00
  • a104548f7c Allow for the maximum overhead when calculating capacity. akwizgran 2012-08-28 14:22:29 +01:00
  • 521ed076ca Whitespace. akwizgran 2012-08-28 12:18:00 +01:00
  • 6965f809c7 Don't create tag ciphers and tag keys unnecessarily. akwizgran 2012-08-28 12:02:37 +01:00
  • 1762eaf3e9 Allow the initiator to close a connection without writing. akwizgran 2012-08-28 11:38:26 +01:00
  • ff73905330 Changed to fixed-length frames (mostly untested). akwizgran 2012-08-28 09:15:04 +01:00
  • 312ad9d534 Added SpongyCastle sources, removed BouncyCastle sources. akwizgran 2012-08-28 08:58:44 +01:00
  • 4cf92a2568 Use the same method as Android for calculating Bluetooth UUIDs. akwizgran 2012-08-24 12:24:50 +01:00
  • b8b18add33 Replaced BouncyCastle with SpongyCastle for Android compatibility. akwizgran 2012-08-24 12:22:40 +01:00
  • a9d196d511 Use the same method as Android to generate the Bluetooth UUID. akwizgran 2012-08-22 11:53:41 +01:00
  • f4b34ca975 Moved defunct invitation and installer code to sandpit repo. akwizgran 2012-07-03 10:49:43 +01:00
  • 3eb3f8be3d Code cleanup for the transport protocol. akwizgran 2012-05-24 19:08:53 +01:00
  • d6b260ed61 Use AES/GCM instead of AES/CTR and HMAC. akwizgran 2012-05-24 18:38:19 +01:00
  • d074652f43 Incremental subscription updates (untested). akwizgran 2012-05-19 02:17:41 +02:00
  • fadf0221d2 Use a DB index to avoid linear insertion time. akwizgran 2012-05-19 01:09:24 +02:00
  • 1ca4ea9dcd Further progress towards incremental subscription updates. akwizgran 2012-05-18 23:54:03 +02:00
  • b4f0da53b5 Use a separate linked list for each contact, containing visible groups. akwizgran 2012-05-17 23:08:57 +02:00
  • 2f4b347cdf Keep a linked list of the IDs of subscribed groups. akwizgran 2012-05-17 21:25:10 +02:00
  • 78e1513aae Fixed a test. akwizgran 2012-05-16 17:57:17 +02:00
  • 9a6086b04a Still trying to track down intermittent test failures under heavy load. akwizgran 2012-05-16 15:24:45 +02:00
  • 741c7cddfd Replaced sleep with a latch to prevent test failures under heavy load. akwizgran 2012-05-15 12:47:46 +02:00
  • e7d66d4b71 Printlns to track down a test failure. akwizgran 2012-05-14 10:28:36 +02:00
  • c1133644e8 Debugging code to track down TorPuginTest failures. akwizgran 2012-05-12 16:58:00 +02:00
  • 46ed0cc4b1 Minor changes to serialisation library (mostly renaming). akwizgran 2012-05-09 13:17:04 +02:00
  • 78e18fb373 Simplified serialisation format. akwizgran 2012-05-08 11:02:49 +02:00
  • a82ae82108 Optionally create a Tor plugin without a hidden service. Should speed up tests. akwizgran 2012-05-04 17:46:29 +01:00
  • 4338bd9a8b Refactored PollingRemovableDriveMonitor, fixed test. akwizgran 2012-05-04 14:24:16 +01:00
  • 4f2704e624 Fixed LockFairnessTest - use latches instead of sleeping. akwizgran 2012-05-04 13:34:26 +01:00
  • 5814826573 Separated key agreement algorithm from signature algorithm. akwizgran 2012-04-28 18:02:28 +01:00
  • b01b17f2b1 Fixed some key derivation bugs and removed an unnecessary argument. akwizgran 2012-03-29 20:11:11 +01:00
  • 15d7fd5796 Encode the frame number at the start of the IV (easier to describe). akwizgran 2012-03-29 19:38:53 +01:00
  • d7581586fd Length prefix all KDF arguments. akwizgran 2012-03-29 16:58:21 +01:00
  • 474fa3d523 All KDF arguments must be either null-terminated or length-prefixed. akwizgran 2012-03-29 15:59:01 +01:00
  • d47a3c3e5b Increased some timeouts to stop tests from failing under load. akwizgran 2012-03-28 23:42:41 +01:00
  • d78081b57d Increased some timeouts and added latches to stop tests failing under heavy load. akwizgran 2012-03-28 23:30:45 +01:00
  • 0391c4cfcd Merged some redundant code. akwizgran 2012-02-24 00:01:47 +00:00
  • c316ebcf7a Partial implementation of the invitation protocol (untested). akwizgran 2012-02-23 23:18:25 +00:00
  • 34cd8cddc3 Upgraded hash function to SHA-384 and MAC to HMAC-SHA-384. akwizgran 2012-02-22 13:17:07 +00:00
  • a9d91beaaa Removed unused variables. akwizgran 2012-02-16 15:18:39 +00:00
  • c0eb71748c Removed an unnecessary allocation. akwizgran 2012-02-10 16:44:18 +00:00
  • 4ca5be7c06 Added a flag to indicate the last frame of the connection. akwizgran 2012-02-07 10:46:01 +00:00
  • e8660c13ca Use a single NetLayer instance for all connections. akwizgran 2012-02-07 09:58:13 +00:00
  • 9acaccb557 Minutes were invented in Java 1.6, apparently. akwizgran 2012-02-07 01:33:48 +00:00
  • 5656dc8df8 Another unit test for the Tor plugin. akwizgran 2012-02-06 23:41:30 +00:00
  • fbf5c78f91 Factory and unit test for the Tor plugin; moved slow tests into their own ant target. akwizgran 2012-02-06 23:18:35 +00:00
  • ec6f60b065 Tor plugin using Silvertunnel's Netlib (untested). akwizgran 2012-02-06 22:30:07 +00:00
  • 6da30ca486 Plan B: Remove error correction and reliability layers and the consequent distinction between segments and frames. akwizgran 2012-02-06 16:03:09 +00:00
  • 899ec5e19e Use a SortedMap for efficient insertions. akwizgran 2012-01-24 14:40:45 +00:00
  • 3d4b5e6282 Make room for the ack header. akwizgran 2012-01-24 09:28:28 +00:00
  • ffe3bafce4 Tests and bugfixes for IncomingReliabilityLayerImpl. akwizgran 2012-01-23 17:06:57 +00:00
  • 9f1e3dea21 Incoming reliability layer with support for reordering (untested). akwizgran 2012-01-21 18:48:24 +00:00
  • 48ceaaea2a Renamed a couple of classes. akwizgran 2012-01-20 23:28:17 +00:00
  • 3a77ba9aaf Allow the transport to specify the maximum segment length. akwizgran 2012-01-20 23:06:51 +00:00
  • 13eff752da Keep a stack of free segments to reduce allocations. akwizgran 2012-01-20 20:05:26 +00:00
  • 337c1c8ac4 Unit tests for IncomingErrorCorrectionLayerImpl. akwizgran 2012-01-20 19:56:18 +00:00
  • 114ca203d8 Tests and bugfixes for XOR encoder and decoder. akwizgran 2012-01-20 19:09:27 +00:00
  • 74dd4e277f Tests and bugfixes for XorErasureDecoder. akwizgran 2012-01-20 17:02:17 +00:00
  • 2b737e7e53 Test and bugfixes for XorErasureEncoder. akwizgran 2012-01-20 16:29:22 +00:00
  • f10af33b6f Outgoing error correction layer (untested). akwizgran 2012-01-20 16:07:07 +00:00
  • e46ef15afb Incoming error correction layer (untested). akwizgran 2012-01-20 15:37:33 +00:00
  • 5a4505cb71 Fixed the frame reordering window. akwizgran 2012-01-20 11:26:10 +00:00
  • 92b67d9881 Removed a redundant method. akwizgran 2012-01-19 23:34:58 +00:00
  • e43ffe1ab4 Frame reordering window. akwizgran 2012-01-19 23:26:26 +00:00
  • 02c516492f Moved connection window size to TransportConstants. akwizgran 2012-01-19 22:13:26 +00:00
  • aabb8fb5b3 Split the functionality of ConnectionWriterImpl into layers. akwizgran 2012-01-19 20:51:45 +00:00
  • 12393581f9 Split the functionality of ConnectionReaderImpl into layers. akwizgran 2012-01-19 19:52:15 +00:00
  • 1f39bfef78 Distinguish between recoverable and unrecoverable errors. akwizgran 2012-01-19 19:27:04 +00:00
  • 7eaa1f176f Removed a println. akwizgran 2012-01-19 18:51:55 +00:00
  • f53cc88b8f Reduced the visibility of a class. akwizgran 2012-01-17 21:51:33 +00:00
  • 249c82d30e Renamed frame cipher -> segment cipher, frame key -> segment key. akwizgran 2012-01-17 21:44:28 +00:00
  • 6085b70b85 Factory methods for segmented connection writers. akwizgran 2012-01-17 20:29:30 +00:00
  • dbeb7a207e Added factory methods for segmented connection readers. akwizgran 2012-01-17 20:21:26 +00:00
  • 87e1c42bf8 Converted the outgoing encryption layer from frames to segments. akwizgran 2012-01-17 17:37:38 +00:00
  • f6ed6dd60b Converted incoming encryption layer from frames to segments. akwizgran 2012-01-17 16:45:25 +00:00
  • 8c0020873c Updated transport constants and renamed some test classes. akwizgran 2012-01-17 14:56:30 +00:00
  • 9bd0b60dec Renamed some classes. akwizgran 2012-01-17 13:19:40 +00:00
  • 79814bd406 Segmented plugin interfaces should extend general plugin interfaces. akwizgran 2012-01-17 13:02:20 +00:00
  • b2cab71637 Decryption code for tagging every segment. akwizgran 2012-01-13 16:58:41 +00:00
  • 0d06ad8bd8 Unit tests for tagging every segment. akwizgran 2012-01-13 15:56:53 +00:00
  • 07f8607c04 Initial support for tagging every segment (untested). akwizgran 2012-01-13 15:50:43 +00:00
  • ac136d3732 Pass segments rather than frames to/from segmented plugins. akwizgran 2012-01-13 15:05:42 +00:00
  • d0e402062a Unit tests for segmented encrypter and decrypter. akwizgran 2012-01-13 13:06:43 +00:00
  • 90e54d94e6 Encrypter and decrypter for segmented transports (untested). akwizgran 2012-01-13 11:54:55 +00:00
  • ab9b05448d APIs for segmented transports. akwizgran 2012-01-13 10:53:23 +00:00
  • f6cad10868 Frame-at-a-time decryption. akwizgran 2012-01-12 18:41:43 +00:00
  • f55f98f506 Frame-at-a-time encryption. akwizgran 2012-01-11 17:50:24 +00:00
  • 99caec9448 Refactoring. akwizgran 2012-01-11 17:00:47 +00:00
  • 1499e061c1 Callback should not be null. akwizgran 2012-01-11 16:17:14 +00:00
  • 3e61adb623 Avoid making alien calls with locks held. akwizgran 2011-12-10 19:21:00 +00:00
  • cbc5fd1bb4 If the reader detects a clean close, let the writer finish and close cleanly. akwizgran 2011-12-10 16:53:04 +00:00
  • f2de23854e Added BoundedExecutor and documented executor policies. akwizgran 2011-12-10 00:59:29 +00:00
  • e47d4990c3 Fixed Bluetooth shutdown issues. akwizgran 2011-12-09 23:01:32 +00:00
  • 5ba5887565 Debugging Bluetooth threading issues. akwizgran 2011-12-09 22:20:32 +00:00
  • 4671b50b37 Close the invitation socket early if a connection is received. akwizgran 2011-12-09 21:36:53 +00:00
  • 8af7e72943 Cancel outstanding tasks and shut down the executor. akwizgran 2011-12-09 21:13:53 +00:00
  • cd068e89c0 Converted plugin executor to ScheduledExecutorService. akwizgran 2011-12-09 21:02:36 +00:00
  • 2014235b86 Log the server socket details to make it easier to run manual tests between two machines. akwizgran 2011-12-09 20:41:05 +00:00
  • f9f41acde9 Added a connection registry to avoid creating redundant connections. akwizgran 2011-12-09 17:34:58 +00:00