aboutsummaryrefslogtreecommitdiff
path: root/include/olm
AgeCommit message (Collapse)Author
2016-05-24Separate base64ing from the rest of msg encodingRichard 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-24Update megolm_cipher as a global structRichard van der Hoff
Initialise megolm_cipher via the preprocessor macro, instead of with a function.
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-24Implement decrypting inbound group messagesRichard van der Hoff
Includes creation of inbound sessions, etc
2016-05-24Implement functions to get the state of outbound sessionRichard 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-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-24Factor out pickle_encoding from olm.cppRichard 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-24Factor out olm_error_to_string to a separate fileRichard van der Hoff
I want to be able to use this functionality from elsewhere, so factor it out to its own file.
2016-05-24Rewrite _olm_cipher_aes_sha_256 initialisationRichard van der Hoff
Replace the init-static-var dance with some preprocessor macros
2016-05-24Remove 'destruct' from cipher_opsRichard van der Hoff
We never delete a cipher, and the destruct op is empty, so it's a bit pointless
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-23C binding for olm::unsetRichard van der Hoff
2016-05-23C bindings for pickle functionsRichard van der Hoff
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-23Rename olm.hh to olm.hRichard van der Hoff
2016-05-20Remove functions which return stringsRichard van der Hoff
We don't want anything which does dynamic memory allocation in the library.
2016-05-16Remove vestiges of loggingRichard van der Hoff
Remove the (now non-functional) declarations of olm_set_log_level in the C and js wrappers.
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-05-16Add olm::log_enabled_forRichard van der Hoff
2016-04-26Fix a bunch of compiler warnings, and turn on warnings.Richard van der Hoff
2016-04-26Add some logging to help understand what's going onRichard van der Hoff
2016-04-26Add a basic logging implementationRichard van der Hoff
2015-08-20Add docstrings for the utility classMark Haines
2015-08-19Add docstrings for the Session methodsMark Haines
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-19Document that the ciphertext and plaintext may share a buffer when ↵Mark Haines
encrypting and decrypting
2015-08-19Add docstring for the base64 encode/decode methodsMark Haines
2015-08-11Check that the end of input hasn't been reached when unpickling a listMark 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-16Add versions of olm_session_create_inbound and olm_session_matches_inbound ↵Mark Haines
which take the curve25519 identity key of the remote device we think the message is from as an additional argument
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-15olm_account_last_error and olm_clear_account should take an Account not a ↵Mark Haines
Session
2015-07-10Clear the random buffers once they've been used. Add methods for clearing ↵Mark Haines
the account and session object once they've been used
2015-07-10Version the pickled objects and check for errors when unpickling themMark Haines
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-09Add methods for generating new one time keys and for tracking which one time ↵Mark Haines
keys have been published
2015-07-08Don't pass a key id when creating a new outbound sessionMark Haines
2015-07-08Change the JSON format for one time keys to include what algorithm they are forMark Haines
2015-07-08Remove the RemoteKey type since it wasn't being usedMark Haines
2015-07-08Send the public part of the one time key rather than passing an identifierMark Haines
2015-07-08Update the javascript bindings and demo to match the format of the identity ↵Mark Haines
key JSON
2015-07-07Encode the account keys as a signed JSON objectMark Haines