- Sep 05, 2016
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Sep 02, 2016
-
-
Richard van der Hoff authored
We were using olm::KEY_LENGTH for everything under the sun which happened to be 32 bytes long, and making a bunch of assumptions in the process. Create a bunch of new constants (as C #defines rather than C++ consts so that I can use them in another forthcoming refactor).
-
- Sep 01, 2016
-
-
Richard van der Hoff authored
Ed25519 private keys, it turns out, have 64 bytes, not 32. We were previously generating only 32 bytes (which is all that is required to generate the public key), and then using the public key as the upper 32 bytes when generating the per-message session key. This meant that everything appeared to work, but the security of the private key was severely compromised. By way of fixes: * Use the correct algorithm for generating the Ed25519 private key, and store all 512 bits of it. * Update the account pickle format and refuse to load the old format (since we should consider it compromised). * Bump the library version, and add a function to retrieve the library version, so that applications can verify that they are linked against a fixed version of the library. * Remove the curve25519_{sign, verify} functions which were unused and of dubious quality.
-
- Jun 30, 2016
-
-
Richard van der Hoff authored
* write V1 pickles on the master branch * the logging branch is going to write v0x80000001
-
Richard van der Hoff authored
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.
-
Richard van der Hoff authored
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.
-
- May 25, 2016
-
-
Richard van der Hoff authored
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.
-
Mark Haines authored
-
- May 24, 2016
-
-
Richard van der Hoff authored
-
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
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Replace the init-static-var dance with some preprocessor macros
-
- May 23, 2016
-
-
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
-
- 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
-
- Aug 07, 2015
-
-
Mark Haines authored
-
Mark Haines authored
Initialise the length fields of the reader struct in decode_message, even if the message is invalid, fixes a crash where the message was too short
-
Mark Haines authored
-
- Jul 24, 2015
-
-
Mark Haines authored
-
- Jul 16, 2015
-
-
Mark Haines authored
-
- Jul 15, 2015
-
-
Mark Haines authored
Add a test of olm which uses malloc to create it's buffers so that it is possible to check of out of bounds reads and writes using valgrind
-
Mark Haines authored
Fix bug in list where the wrong value was copied if an item was inserted at the beinging of the list
-
- Jul 14, 2015
-
-
Mark Haines authored
-
- Jul 10, 2015
-
-
Mark Haines authored
Output simpler JSON for the account keys, don't sign the JSON but instead provide a olm_account_sign method so that the user of the library can sign the JSON themselves
-
- Jul 09, 2015
-
-
Mark Haines authored
-
- Jul 08, 2015
-
-
Mark Haines authored
-
Mark Haines authored
-
- Jul 07, 2015
-
-
Mark Haines authored
-
Mark Haines authored
-
Mark Haines authored
-
- Jun 26, 2015
-
-
Matthew Hodgson authored
Rename axolotlpp as olm to avoid confusion with Axolotl-the-spec and Axolotl-the-OWS-libraries at moxie's request
-