Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-05-26 | javascript/olm_inbound_group_session.js: fix length arg | Richard van der Hoff | |
message.length counts codepoints; we need bytes. | |||
2016-05-26 | Merge remote-tracking branch 'matrix/master' | Mark Haines | |
2016-05-26 | Add a fuzzer for olm_group_decrypt | Mark Haines | |
2016-05-25 | Add a demo for group messaging via the JS bindings | Richard van der Hoff | |
2016-05-25 | Javascript bindings for group sessions | Richard van der Hoff | |
2016-05-25 | Remove session_id from group messages | Richard 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-25 | Compile some of the crypto libs directly | Richard 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-25 | Merge branch 'rav/more_group_chat/1' | Richard van der Hoff | |
2016-05-25 | Add a comment explaining Mark's latest fix | Richard van der Hoff | |
2016-05-25 | Merge branch 'rav/jenkins_build' | Richard van der Hoff | |
2016-05-25 | Fix an integer wrap around bug and add a couple more tests | Mark Haines | |
2016-05-25 | Merge branch 'markjh/fuzzingII' | Mark Haines | |
2016-05-24 | Fix handling of integer wraparound in megolm.c | Richard van der Hoff | |
2016-05-24 | megolm_advance_to: Remove excessive optimisation | Richard 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-24 | megolm.c: rewrite counter update | Richard 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-24 | megolm.c: Remove spurious arguments to rehash_part | Richard van der Hoff | |
These were left over from when rehash_part did a bunch of logging. | |||
2016-05-24 | Avoid use of jq in test_olm | Richard 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-24 | Merge branch 'master' into rav/jenkins_build | Richard van der Hoff | |
2016-05-24 | Build the tests with -g | Richard van der Hoff | |
think this got lost when mark added separate release/debug builds | |||
2016-05-24 | Separate base64ing from the rest of msg encoding | Richard 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-24 | Update megolm_cipher as a global struct | Richard van der Hoff | |
Initialise megolm_cipher via the preprocessor macro, instead of with a function. | |||
2016-05-24 | add a script for jenkins to run | Richard van der Hoff | |
2016-05-24 | Build the crypto libs as C99 | Richard 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-24 | Use _olm_unset instead of memset | Richard van der Hoff | |
memset is at risk of being optimised away, so use _olm_unset instead. | |||
2016-05-24 | Avoid relying on uint -> int casting behaviour | Richard 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-24 | Python wrapper: support for inbound group sessions | Richard van der Hoff | |
2016-05-24 | Fix up some names, and protobuf tags | Richard 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-24 | Support for pickling inbound group sessions | Richard van der Hoff | |
2016-05-24 | Implement decrypting inbound group messages | Richard van der Hoff | |
Includes creation of inbound sessions, etc | |||
2016-05-24 | Implement functions to get the state of outbound session | Richard 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-24 | Outbound group session support in the python wrappers | Richard van der Hoff | |
2016-05-24 | Implement pickling/unpickling for outbound group sessions | Richard van der Hoff | |
2016-05-24 | Implementation of an outbound group session | Richard van der Hoff | |
2016-05-24 | Implementation of the megolm ratchet | Richard van der Hoff | |
2016-05-24 | Factor out pickle_encoding from olm.cpp | Richard 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-24 | Factor out olm_error_to_string to a separate file | Richard van der Hoff | |
I want to be able to use this functionality from elsewhere, so factor it out to its own file. | |||
2016-05-24 | Merge branch 'rav/c_bindings' | Richard van der Hoff | |
2016-05-24 | Rewrite _olm_cipher_aes_sha_256 initialisation | Richard van der Hoff | |
Replace the init-static-var dance with some preprocessor macros | |||
2016-05-24 | Remove 'destruct' from cipher_ops | Richard van der Hoff | |
We never delete a cipher, and the destruct op is empty, so it's a bit pointless | |||
2016-05-23 | Fix bug in bounds check when parsing | Mark Haines | |
2016-05-23 | Prefix for internal symbols | Richard van der Hoff | |
Give a load of internal symbols "_olm_" prefixes. This better delineates the public and private interfaces in the module, and helps avoid internal symbols leaking out and possibly being abused. | |||
2016-05-23 | C bindings for base64 functions | Richard van der Hoff | |
2016-05-23 | C binding for olm::unset | Richard van der Hoff | |
2016-05-23 | C bindings for pickle functions | Richard van der Hoff | |
2016-05-23 | Convert cipher.hh to plain C | Richard van der Hoff | |
2016-05-23 | Convert error.hh to plain C | Richard van der Hoff | |
2016-05-23 | Give SHA256 functions C bindings | Richard van der Hoff | |
2016-05-23 | Rename olm.hh to olm.h | Richard van der Hoff | |
2016-05-23 | Complete fixes for olm_*_last_error | Richard van der Hoff | |
Should have been in the previous commit :/ | |||
2016-05-23 | fix range check in olm_*_last_errror | Richard van der Hoff | |