aboutsummaryrefslogtreecommitdiff
path: root/src/account.cpp
AgeCommit message (Collapse)Author
2020-08-14add support for fallback keysHubert Chathi
2017-09-29Avoid C99 inside C++ codeAlexey Rusakov
This disrupts building at least with Visual Studio. Signed-off-by: Alexey Rusakov <ktirf@users.sf.net>
2016-09-05Convert ed25519 pickling functions to CRichard van der Hoff
... so that I can use them from the group session bits.
2016-09-05Convert Ed25519 and Curve25519 functions to plain CRichard van der Hoff
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-09-01Fix Ed25519 keypair generationRichard van der Hoff
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.
2016-05-23Convert error.hh to plain CRichard 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-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-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
2015-07-07Rename generate_key to curve25519_generate_keyMark Haines
2015-07-07Remove the last resort one time keyMark Haines
2015-07-07Removed SignedKey classMark 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-23reduce the number of one time keys that get generated when we create an accountMark Haines
2015-06-22Copyright NoticesMark Haines
2015-06-22Add API for removing used one time keysMark Haines
2015-06-15Implement creating a new accountMark Haines
2015-06-12Move utils for pickling into a separate fileMark Haines