aboutsummaryrefslogtreecommitdiff
path: root/src/ratchet.cpp
AgeCommit message (Collapse)Author
2016-09-02Create new constants for key lengths, etcRichard van der Hoff
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).
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-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-23Convert cipher.hh to plain CRichard van der Hoff
2016-05-23Convert error.hh to plain CRichard van der Hoff
2016-05-23Give SHA256 functions C bindingsRichard van der Hoff
2016-05-16Remove logging functionalityRichard van der Hoff
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.
2016-05-16translate logging.cpp to CRichard van der Hoff
2016-04-26Add some logging to help understand what's going onRichard 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-18Make the internal functions static, remove some unused internal functionsMark 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-16Add a test for the axolotl APIMark Haines
2015-06-12Move utils for pickling into a separate fileMark Haines
2015-06-12Implement the session key exchangeMark 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-11Start writing the interfaces for session and the account objectsMark Haines
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-06-09Add methods for pickling and unpickling sessionsMark Haines
2015-03-03Constant time comparison for macMark Haines
2015-03-03const on right hand sideMark Haines
2015-03-03Rename the ratchet source and include files from axolotl to ratchetMark Haines