Commit graph

905 commits

Author SHA1 Message Date
pedroGitt
867ef94ced First update with serialization mechanism 2016-10-20 14:40:59 +02:00
pedroGitt
250af95330 First update with serialization mechanism 2016-10-20 14:40:10 +02:00
Mark Haines
9a8d2d15d9 Check the message index in the tests 2016-10-20 11:51:56 +01:00
Richard van der Hoff
65b3345317 Merge branch 'master' 2016-10-20 11:43:41 +01:00
Richard van der Hoff
68d98234e1 Merge pull request #30 from matrix-org/rav/misc_docs
Add notes on limitations to megolm spec
2016-10-20 11:42:09 +01:00
Mark Haines
3091dc2b1d Add NULL check for message_index pointer 2016-10-20 11:35:45 +01:00
Mark Haines
653790eacb Return the message index when decrypting group messages.
Applications can use the index to detect replays of the same message.
2016-10-20 09:58:55 +01:00
Richard van der Hoff
5f1b93bd0f s/ephemeral/one-time/ in olm spec
We're standardising on 'one-time keys' as a term for the thing that Bob uploads
for prekey messages.
2016-10-19 19:18:58 +01:00
Richard van der Hoff
df04cd509a Add notes on limitations to megolm spec 2016-10-19 19:16:23 +01:00
Richard van der Hoff
23fdc0b0f9 Link to the megolm spec 2016-10-19 19:14:18 +01:00
Richard van der Hoff
d48dc81976 Document the unknown key-share attacks and mitigation (#29) 2016-10-19 17:27:24 +01:00
pedroGitt
e45c03c9e0 Add new exception message for deserialization 2016-10-19 18:18:12 +02:00
Richard van der Hoff
351b26fa6e Merge pull request #28 from matrix-org/rav/fix_megolm_segfault
Fix a buffer bounds check when decoding group messages
2016-10-19 15:21:07 +01:00
Richard van der Hoff
780203b054 Merge pull request #27 from matrix-org/rav/fuzzers_readme
Add a README for the fuzzers
2016-10-19 15:20:54 +01:00
Richard van der Hoff
1ff64391ed Fix a buffer bounds check when decoding group messages
Fixes a segfault when a group message had exactly the length of the mac +
signature.

Also tweak skipping of unknown tags to avoid an extra trip around the loop.
2016-10-19 15:03:40 +01:00
Richard van der Hoff
cada801de5 Add a README for the fuzzers 2016-10-19 14:59:50 +01:00
pedroGitt
5b524efc44 Update due to the de/serialization API 2016-10-19 15:23:19 +02:00
pedroGitt
26d9934fc8 Fix verifyEd25519Signature() API to properly return the error message in case signature verification failed
- update unit tests
2016-10-18 19:02:18 +02:00
pedroGitt
a6913c49c2 Fix javadoc header comment 2016-10-18 19:00:23 +02:00
pedroGitt
139402611a Add OlmUtility class
- add unit tests for OlmUtility
- rename OlmGroupTest to OlmGroupSessionTest
- update OlmException
2016-10-18 16:05:28 +02:00
pedroGitt
034fa6be40 - Add new API for OlmUtility
- Introducing namespace AndroidOlmSdk
- Fix logs (function names mixed up)
- Add new check based on the calling java object instance type (IsInstanceOf())
- Fix return value for getXXXInstanceId() in case of failure. Now 0 is returned.
2016-10-18 15:59:36 +02:00
pedroGitt
4ccc45ab0a - Update Javadoc for keys constants definitions
- change return code from removeOneTimeKeysForSession() (direct value from JNI is now returned)
2016-10-17 16:58:19 +02:00
pedroGitt
b6cf3f1eec Update Javadoc method headers with direct link to PRE_KEY definition 2016-10-17 16:55:14 +02:00
pedroGitt
4545b7bc19 Fix "invalid address or address of corrupt passed to dlfree" in 32bits platform devices 2016-10-17 16:53:36 +02:00
pedroGitt
7e69d96afc Add extra tests to check if the calling JAVA instance is the expected one 2016-10-17 16:48:29 +02:00
manuroe
a9be04fa4b OLMKit: Add [OLMUtility sha256:] 2016-10-17 15:47:52 +02:00
pedroGitt
ebfcd03ce5 - Add in/outbound group unit test OK 2016-10-14 18:43:57 +02:00
manuroe
4a2aac5800 OLMKit: Add signature tests 2016-10-14 15:57:12 +02:00
pedroGitt
1028099550 - Add inbound and outbound group sessions
- Modify constructors for inbound and outbound group sessions
- Add new Ecxception class
2016-10-14 15:27:20 +02:00
pedroGitt
57ec6fff88 Temp commit.. adding group session API in progress 2016-10-13 19:21:01 +02:00
manuroe
d1060af8f0 OLMKit: Renamed [OLMAccount markKeysAsPublished] into [OLMAccount markOneTimeKeysAsPublished] and implemented it 2016-10-13 16:10:00 +02:00
pedroGitt
147df845d0 Enbale all ABI platforms 2016-10-13 14:39:44 +02:00
pedroGitt
572c7cd464 Renaming JNI API decryptMessage in decryptMessageJni 2016-10-13 10:44:59 +02:00
pedroGitt
e59ee33b67 Add missing copyright headers 2016-10-13 10:33:43 +02:00
pedroGitt
618eab0086 Update SDK JAVA API making initNewAccount() private and called in the respective constructors 2016-10-13 10:30:08 +02:00
pedroGitt
42c85adbc4 Update function API signatures with macros 2016-10-13 10:27:24 +02:00
pedroGitt
293a12a138 Fix warning compiler 2016-10-13 10:26:27 +02:00
pedroGitt
502de788f4 Merge remote-tracking branch 'origin/pedroc/android_e2e' into pedroc/android_e2e_dev 2016-10-13 09:36:43 +02:00
PedroGitt
f88ee7677c - Fix encrypt API (update lencrypted ength)
- Fix warning compiler
2016-10-13 00:19:47 +02:00
pedroGitt
1679c4513f Temp commit: debug in progress 2016-10-12 19:04:50 +02:00
manuroe
3cb01fd279 OLMKit: Fixed typo in test 2016-10-11 16:54:56 +02:00
pedroGitt
f2ca1ce304 - Add OlmSession unit test
- Simplify JNI function signatures definition (Account & Session)
2016-10-11 15:53:49 +02:00
manuroe
7ae6410f37 OLMKit: Add tests for OLMInboundGroupSession and OLMOutboundGroupSession 2016-10-10 18:01:02 +02:00
manuroe
2bd912990f OLMKit: Add megolm api: OLMInboundGroupSession and OLMOutboundGroupSession 2016-10-10 17:58:22 +02:00
pedroGitt
67f7939470 - Add decryptMessageJni() to olm_session.cpp API
- review comments header
- refactor utility functions
2016-10-07 17:35:27 +02:00
pedroGitt
655c841cc3 - Update Unit tests for OlmAccount
- new file olm_utility.cpp to have a stand alone function to initialize/alloc a random buffer
 - new class OlmMessage
 - complete OlmSession API with encryptMessage()
 - comments review
 - OlmAccount unit tests are green
 - new gradle to compile the shared lib according to debug mode
2016-10-06 19:55:03 +02:00
pedroGitt
0393ad6843 Update Account unit tests 2016-10-06 10:30:24 +02:00
pedroGitt
573713dd00 - Add missing file 2016-10-06 08:40:21 +02:00
pedroGitt
5573d3ab23 First commit adding Olm Lib for Android
- Add Android Studio project
2016-10-05 18:25:09 +02:00
pedroGitt
3136826e02 First commit on depo
- Add file
2016-10-05 15:31:52 +02:00