aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-11Makefile rules to build the rst into htmlRichard van der Hoff
2016-07-11Prepare 1.0.0 release1.0.0Richard van der Hoff
2016-07-06Merge branch 'rav/fix_decrypt_utf8'Richard van der Hoff
2016-07-06JS: make sure returned strings are null-terminatedRichard van der Hoff
It turns out that the 'length' argument to 'Pointer_stringify' doesn't work if the input includes characters >= 128. Rather than try to figure out which methods can return UTF-8, and which always return plain ascii, replace all uses of Pointer_stringify with a 'length' argument with the version that expects a NULL-terminated input, and extend the buffer by a byte to allow space for a null-terminator. In the case of decrypt, we need to add the null ourself. Fixes https://github.com/vector-im/vector-web/issues/1719.
2016-07-05Add an install and an install-debug targetsEmmanuel Gil Peyrot
This makes the user able to use the familiar `make install` syntax, and allows overriding of the default directories using the DESTDIR and PREFIX variables, for example: make DESTDIR=packaging PREFIX=/usr install
2016-07-05Specify the soname in the library and its nameEmmanuel Gil Peyrot
This provides users of this library the guarantee that the ABI will stay stable when MAJOR will reach 1, and will stay backwards compatible for the entire duration of the 1.x.y branch. It does require the maintainers to always update the version in the Makefile at every ABI change.
2016-06-30PR feedbackRichard van der Hoff
* write V1 pickles on the master branch * the logging branch is going to write v0x80000001
2016-06-30Make space in the session pickle for chain indexRichard van der Hoff
Keeping track of the chain index is a useful thing to do, but is only required if we've enabled diagnostics. Extend the session pickle format to make a space for it, so that pickles can be transferred between the logging_enabled branch and the master branch without loss of information. Also add some tests for session pickling which explicitly check that we can unpickle both formats of pickle.
2016-06-30Remove unused 'chain_index' from RatchetRichard van der Hoff
This was introduced when I was experimenting with support for logging progress in Olm. That is now relegated to the logging_enabled branch, so this should probably be removed. This also fixes the incompatibility of session pickles from the current master branch with those from olm 0.1.0.
2016-05-26Put a signature on sent group messagesRichard van der Hoff
It's important that group messages be signed by the sender, rather than by a secret derived from the shared secret.
2016-05-26js group demo: use a remoteOps objectRichard van der Hoff
To make sure that we don't sneakily use methods which we wouldn't be able to for remote users, expose an interface object which contains the remote interface.
2016-05-26Merge branch 'rav/group_chat_js_bindings'Richard van der Hoff
2016-05-26javascript/olm_inbound_group_session.js: fix length argRichard van der Hoff
message.length counts codepoints; we need bytes.
2016-05-26Merge remote-tracking branch 'matrix/master'Mark Haines
2016-05-26Add a fuzzer for olm_group_decryptMark Haines
2016-05-25Add a demo for group messaging via the JS bindingsRichard van der Hoff
2016-05-25Javascript bindings for group sessionsRichard van der Hoff
2016-05-25Remove session_id from group messagesRichard van der Hoff
Putting the session_id inside the packed message body makes it hard to extract so that we can decide which session to use. We don't think there is any advantage to having thes sesion_id protected by the HMACs, so we're going to move it to the JSON framing.
2016-05-25Compile some of the crypto libs directlyRichard van der Hoff
sha256.c and aes.c contain conflicting declarations, so we need to compile them as separate units. This requires a bit more Makefile-shuffling; the build directory now includes 'src' or 'lib' as appropriate, and we just mkdir -p before each compilation.
2016-05-25Merge branch 'rav/more_group_chat/1'Richard van der Hoff
2016-05-25Add a comment explaining Mark's latest fixRichard van der Hoff
2016-05-25Merge branch 'rav/jenkins_build'Richard van der Hoff
2016-05-25Fix an integer wrap around bug and add a couple more testsMark Haines
2016-05-25Merge branch 'markjh/fuzzingII'Mark Haines
2016-05-24Fix handling of integer wraparound in megolm.cRichard van der Hoff
2016-05-24megolm_advance_to: Remove excessive optimisationRichard van der Hoff
There was some slightly overcomplex logic designed to save a couple of hash operations when R(0) and R(1) were advanced, but the extra code was hard to understand and didn't save much.
2016-05-24megolm.c: rewrite counter updateRichard van der Hoff
We no longer need to keep track of intermediate values of the counter, which means we can update it much more easily.
2016-05-24megolm.c: Remove spurious arguments to rehash_partRichard van der Hoff
These were left over from when rehash_part did a bunch of logging.
2016-05-24Avoid use of jq in test_olmRichard van der Hoff
I want to use test_olm.sh on jenkins, which lacks jq. Hence, add support to olm.main to get id and one-time keys individually.
2016-05-24Merge branch 'master' into rav/jenkins_buildRichard van der Hoff
2016-05-24Build the tests with -gRichard van der Hoff
think this got lost when mark added separate release/debug builds
2016-05-24Separate base64ing from the rest of msg encodingRichard van der Hoff
Factor the actual message encoding/decoding and encrypting/decrypting out to separate functions from the top-level functions which do the base64-wrangling. This is particularly helpful in the 'outbound' code-path where the offsets required to allow room to base64-encode make the flow hard to see when it's all inline.
2016-05-24Update megolm_cipher as a global structRichard van der Hoff
Initialise megolm_cipher via the preprocessor macro, instead of with a function.
2016-05-24add a script for jenkins to runRichard van der Hoff
2016-05-24Build the crypto libs as C99Richard van der Hoff
Some of the crypto libs rely on UINT64_C, which in glibc 2.17 and earlier was not defined for C++ code (see https://sourceware.org/bugzilla/show_bug.cgi?id=15366).
2016-05-24Use _olm_unset instead of memsetRichard van der Hoff
memset is at risk of being optimised away, so use _olm_unset instead.
2016-05-24Avoid relying on uint -> int casting behaviourRichard van der Hoff
The behaviour when casting from a uint32_t which has overflowed (so has the top bit set) to int32_t is implementation-defined, so let's avoid relying on it.
2016-05-24Python wrapper: support for inbound group sessionsRichard van der Hoff
2016-05-24Fix up some names, and protobuf tagsRichard van der Hoff
Make names (of session_key and message_index) more consistent. Use our own protobuf tags rather than trying to piggyback on the one-to-one structure.
2016-05-24Support for pickling inbound group sessionsRichard van der Hoff
2016-05-24Implement decrypting inbound group messagesRichard van der Hoff
Includes creation of inbound sessions, etc
2016-05-24Implement functions to get the state of outbound sessionRichard van der Hoff
We need to be able to inspect an outbound session so that we can tell our peer how to set up an inbound session.
2016-05-24Outbound group session support in the python wrappersRichard van der Hoff
2016-05-24Implement pickling/unpickling for outbound group sessionsRichard van der Hoff
2016-05-24Implementation of an outbound group sessionRichard van der Hoff
2016-05-24Implementation of the megolm ratchetRichard van der Hoff
2016-05-24Factor out pickle_encoding from olm.cppRichard van der Hoff
We don't need to have all of the top-level pickling functions in olm.cpp; factor out the utilities to support it to pickle_encoding.cpp (and make sure that they have plain-C bindings).
2016-05-24Factor out olm_error_to_string to a separate fileRichard van der Hoff
I want to be able to use this functionality from elsewhere, so factor it out to its own file.
2016-05-24Merge branch 'rav/c_bindings'Richard van der Hoff
2016-05-24Rewrite _olm_cipher_aes_sha_256 initialisationRichard van der Hoff
Replace the init-static-var dance with some preprocessor macros