akwizgran
33ef09a6bf
Implement Service interface rather than extending it.
...
Whether or not a class needs to run as a service is an implementation decision.
2016-01-20 14:43:46 +00:00
akwizgran
77054cbae7
Small improvements to DB interface.
2016-01-20 10:35:14 +00:00
akwizgran
5355951466
Separate the sync layer from its clients. #112
2016-01-20 10:35:09 +00:00
Santiago Torres
190bb12964
ENH: Replaces transport config with namespaced settings
2016-01-20 00:57:16 -05:00
akwizgran
ec096e6750
Updated tests for jMock 2.8.1.
2016-01-18 12:47:11 +00:00
Torsten Grote
872d10e2b0
Removed upstream jar files from all modules except briar-desktop
2016-01-15 12:10:28 -02:00
akwizgran
d66677e097
Updated Ant build file for briar-tests.
2016-01-13 17:27:58 +00:00
akwizgran
4af522009d
Merge branch 'metadata-encoder-parser-tests' into 'master'
...
Add tests for metadata encoder and parser as well as UTF-8 tests for BDF reader and writer
This also includes a commit to fix issues found in the metadata encoder and parser.
See merge request !58
2016-01-13 17:25:34 +00:00
Torsten Grote
0dfa1b5254
Add UTF-8 tests for BDF Reader and Writer
2016-01-12 17:04:59 -02:00
Torsten Grote
27cb64e936
Properly test values as expected and actual, not the other way around
2016-01-12 17:04:02 -02:00
akwizgran
4c23ceca82
Fixed stupid bugs in metadata encoder and parser.
2016-01-12 17:55:38 +00:00
Torsten Grote
b837e8b035
Use @Test annotation to test for exceptions being thrown
...
Please note that this commit only uses the @Test annotation
where exceptions are thrown at the end of the test,
because otherwise the test would not be executed completely.
Examples for this are in DatabaseComponentImplTest where many exceptions
are thrown in close succession or in ConnectionRegistryImplTest where an
exception is thrown in the middle of the test.
2016-01-12 15:16:34 -02:00
Torsten Grote
06ce20dba2
add common tests for MetadataParserImpl and MetadataEncoderImpl
2016-01-12 14:34:52 -02:00
akwizgran
a847b30ed3
Code cleanup, complain about lack of unit tests.
2016-01-12 11:35:44 +00:00
akwizgran
7be7ce8eda
Update data format to match BDF spec.
2016-01-12 11:35:30 +00:00
akwizgran
25c9cff8d6
Merge branch '112-transport-properties-manager' into 'master'
...
Transport properties manager facade, key manager refactoring. #112
Refactoring for #112 : decouple the invitation and plugin code from the database with a TransportPropertiesManager facade (which will become a BSP client), and move some key management logic from the invitation code to the KeyManager. Update the integration tests to use the new FooManager facades.
See merge request !49
2016-01-12 11:35:18 +00:00
akwizgran
3c6ead0603
Code clarity, more unit tests for ByteUtils.
...
Addresses comments for !48 .
2016-01-12 11:10:22 +00:00
akwizgran
805bf39ec8
Created TransportPropertyManager facade.
2016-01-04 12:56:06 +00:00
akwizgran
6a4aea77fb
Final crypto changes for BTPv2. #111
...
Use BLAKE2s to generate tags.
KDF arguments for key rotation.
Frame IV format.
2016-01-04 12:42:30 +00:00
akwizgran
90af176810
Use BLAKE2s for hashing, key derivation and signatures.
...
SHA-256 is still used for password-based key derivation (will be replaced with Argon2) and Fortuna.
2015-12-31 17:42:11 +00:00
akwizgran
affba07baa
Added BLAKE2s test to Ant build file.
2015-12-31 16:04:58 +00:00
str4d
d5b347e6c9
BLAKE2s implementation
...
Implementation is based on the BLAKE2b implementation from BouncyCastle, and is
therefore licensed under the BouncyCastle license (which will make future
upstreaming of the code easier).
2015-12-31 16:01:33 +00:00
akwizgran
2dee821f3c
Updated Ant build file for automated tests.
2015-12-31 12:05:12 +00:00
akwizgran
73bb3b0065
Fixed return value of process().
2015-12-18 16:47:01 +00:00
akwizgran
fc897bd1b9
Use XSalsa20-Poly1305 instead of AES-GCM. #111
2015-12-18 16:47:01 +00:00
akwizgran
ad0972877b
Updated TestStreamEncrypter/Decrypter.
2015-12-18 13:34:02 +00:00
akwizgran
f2efe7f2ea
Implement stream header for BTPv2. #111
2015-12-18 13:34:02 +00:00
akwizgran
52720c5c04
Pass-through implementations of UI/DB interfaces.
2015-12-17 16:56:57 +00:00
akwizgran
c5282c5b17
Moved some API classes into packages.
2015-12-17 16:56:57 +00:00
Torsten Grote
2d28dcada2
Create two new events to signal enabling and disabling of transports
2015-12-17 11:34:10 -02:00
akwizgran
c7e4d5ffa9
Merge branch '147-crypto_secretbox' into 'master'
...
147 crypto secretbox
Closes #147
See merge request !27
2015-12-17 09:23:26 +00:00
str4d
3f54657ca0
Simple test vectors for XSalsa20/Poly1305
...
Test vectors taken from NaCl paper.
2015-12-16 19:51:06 +00:00
akwizgran
60a5b28e57
Renamed DatabaseComponentTest.
2015-12-16 12:17:38 +00:00
akwizgran
6e61504d24
Removed message expiry code. #180
2015-12-16 12:17:38 +00:00
akwizgran
2ca2356ecc
Moved MessageHeader to sync package.
2015-12-15 15:05:16 +00:00
akwizgran
e370cafb12
Moved classes from messaging package to sync package.
2015-12-15 15:05:06 +00:00
akwizgran
6dc225d037
Refactor KeyManager and TagRecogniser. #55
2015-12-14 11:05:37 +00:00
akwizgran
9868feeb2a
Refactor KeyManager and TagRecogniser. #55
2015-12-14 11:02:49 +00:00
akwizgran
912ba394c5
Refactored FileUtils.
...
Removed methods that are no longer needed for Java 6, moved the remaining method into the utils directory.
2015-12-10 15:58:52 +00:00
akwizgran
947da886bf
Fixed broken tests.
2015-12-10 15:14:50 +00:00
Ernir Erlingsson
a5fd7ff9dc
Added dependency injections for FileUtils and removed redundant code
2015-12-10 11:07:10 +01:00
akwizgran
d0342f9a4e
Merge branch 'junit-4-not-3' into 'master'
...
Don't mix JUnit 4's @Test with JUnit3's TestCase.
This is the world's most boring merge request. Android Studio was complaining about using JUnit 4's @Test annotations with JUnit 3's TestCase, so I fixed it.
Most of the changes come from Android Studio organising imports in a different order from Eclipse.
See merge request !8
2015-12-09 13:23:42 +00:00
Ernir Erlingsson
2a61fa94d1
modified .gitignore and removed *.iml from git
2015-12-09 00:33:22 +01:00
akwizgran
123dff3a3d
Don't mix JUnit 4 annotations with JUnit3 TestCase.
2015-12-08 14:53:50 +00:00
akwizgran
061479dd68
Set source and target version to Java 6 in subprojects.
2015-12-04 10:12:01 +00:00
akwizgran
8529c976c2
Renamed a bunch of lock variables.
...
"synchLock" will become confusing when we have lots of objects with "sync" in the name.
2015-12-03 16:39:53 +00:00
akwizgran
7bc08b2de7
Updated Gradle wrapper.
2015-12-03 12:10:36 +00:00
akwizgran
2d346f7b73
Fixed library paths in Android Studio project files.
2015-12-03 11:33:46 +00:00
akwizgran
8ae3fb3e35
Upgraded Spongy Castle to 1.53, fixed tests. #146
2015-12-03 11:12:16 +00:00
akwizgran
427efdc7d6
Raise minimum Java version to 6, upgrade H2. #24
2015-12-02 14:59:51 +00:00