- May 24, 2016
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
We no longer need to keep track of intermediate values of the counter, which means we can update it much more easily.
-
Richard van der Hoff authored
These were left over from when rehash_part did a bunch of logging.
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
Initialise megolm_cipher via the preprocessor macro, instead of with a function.
-
Richard van der Hoff authored
memset is at risk of being optimised away, so use _olm_unset instead.
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Includes creation of inbound sessions, etc
-
Richard van der Hoff authored
We need to be able to inspect an outbound session so that we can tell our peer how to set up an inbound session.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
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).
-
Richard van der Hoff authored
I want to be able to use this functionality from elsewhere, so factor it out to its own file.
-
Richard van der Hoff authored
Replace the init-static-var dance with some preprocessor macros
-
Richard van der Hoff authored
We never delete a cipher, and the destruct op is empty, so it's a bit pointless
-
- May 23, 2016
-
-
Mark Haines authored
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Should have been in the previous commit :/
-
Richard van der Hoff authored
-
- May 20, 2016
-
-
Richard van der Hoff authored
These seem to be the wrong way around.
-
Richard van der Hoff authored
We don't want anything which does dynamic memory allocation in the library.
-
- May 16, 2016
-
-
Richard van der Hoff authored
Concerns have been raised that including logging functionality makes it harder to audit the implementation to ensure that no secret information is leaked. We are therefore removing it from the master branch.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Apr 26, 2016
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Dec 03, 2015
-
-
Richard van der Hoff authored
This fixes an incorrect re-declaration of ed25519_sign. Implement header files for some of the other library bits so that we don't need to declare functions in crypto.cpp.
-
- Aug 19, 2015
-
-
Mark Haines authored
Replace hard coded references to the 32-byte key length with a constant, add utilities for copying data to and from fixed sized arrays
-