aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-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-25Fix an integer wrap around bug and add a couple more testsMark Haines
2016-05-24Fix handling of integer wraparound in megolm.cRichard 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 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-24Rewrite _olm_cipher_aes_sha_256 initialisationRichard van der Hoff
Replace the init-static-var dance with some preprocessor macros
2016-05-23Prefix for internal symbolsRichard 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-23C bindings for base64 functionsRichard van der Hoff
2016-05-23Convert cipher.hh to plain CRichard van der Hoff
2016-05-23Give SHA256 functions C bindingsRichard van der Hoff
2016-05-23Rename olm.hh to olm.hRichard van der Hoff
2016-05-23Fix warnings and set -WerrorRichard van der Hoff
2015-08-19Replace hard coded references to the 32-byte key length with a constant, add ↵Mark Haines
utilities for copying data to and from fixed sized arrays
2015-08-07Fix crash where the message length was shorter than the length of the macMark Haines
2015-08-07Initialise the length fields of the reader struct in decode_message, even if ↵Mark Haines
the message is invalid, fixes a crash where the message was too short
2015-08-07Fix a crash when decoding messages that are too shortMark Haines
2015-07-24Add methods for computing sha256 hashes and validating ed25519 signaturesMark Haines
2015-07-16Add method getting a session id. Update the python and javascript bindingsMark Haines
2015-07-15Add a test of olm which uses malloc to create it's buffers so that it is ↵Mark Haines
possible to check of out of bounds reads and writes using valgrind
2015-07-15Fix bug in list where the wrong value was copied if an item was inserted at ↵Mark Haines
the beinging of the list
2015-07-14Add a test for pickling and unpickling sessions, fix off by one error when ↵Mark Haines
unpickling sessions
2015-07-10Output simpler JSON for the account keys, don't sign the JSON but instead ↵Mark Haines
provide a olm_account_sign method so that the user of the library can sign the JSON themselves
2015-07-09Add c bindings for the methods for managing one time keysMark Haines
2015-07-08Change the JSON format for one time keys to include what algorithm they are forMark Haines
2015-07-08Send the public part of the one time key rather than passing an identifierMark Haines
2015-07-07Encode the account keys as a signed JSON objectMark Haines
2015-07-07Add functions for creating and verifying ed25519 signaturesMark Haines
2015-07-07Rename generate_key to curve25519_generate_keyMark Haines
2015-06-27Rename axolotlpp as olm to avoid confusion with Axolotl-the-spec and ↵Matthew Hodgson
Axolotl-the-OWS-libraries at moxie's request
2015-06-26Add some tests which advance the ratchet on both sides a few timesMark Haines
2015-06-21Make the 'random' numbers different for each key in the testsMark Haines
2015-06-20Fix a few valgrind warnings in the testsMark Haines
2015-06-16Add a test for the axolotl APIMark Haines
2015-06-15Add base64 encoders and decodersMark Haines
2015-06-12Pass the message body to decrypt_max_plaintext_length so we can get a more ↵Mark Haines
accurate estimate, rename encrypt_max_output_length to encrypt_output_length and change the api to return the exact number of bytes needed to hold the message
2015-06-11rename Session to RatchetMark Haines
2015-06-11Add encoder and decoder for PreKey messagesMark Haines
2015-06-11Move AES specific details behind a cipher interfaceMark Haines
2015-03-03Rename the ratchet source and include files from axolotl to ratchetMark Haines
2015-03-03Add functions for signing and verifying messages using curve25519 keysMark Haines
2015-02-27Test out of order delivery of messagesMark Haines
2015-02-26Copyright notices and a licenseMark Haines
2015-02-26Add test for axolotl ratchetMark Haines
2015-02-26Implement the axlotl ratchetMark Haines