aboutsummaryrefslogtreecommitdiff
path: root/javascript
AgeCommit message (Collapse)Author
2016-09-14Fix the group javascript demoMark Haines
2016-09-13Merge remote-tracking branch 'matrix/master'Mark Haines
2016-09-13Merge pull request #23 from matrix-org/markjh/remove_message_indexMark Haines
Remove the messsage index from olm_init_inbound_group_session
2016-09-13Remove the messsage index from olm_init_inbound_group_session since it is ↵Mark Haines
read from the session_key
2016-09-13Add a olm_inbound_group_session_id methodMark Haines
2016-09-06call double ratchet what it isMatthew Hodgson
2016-09-06Bump version numbers to 1.2.01.2.0Richard van der Hoff
2016-09-06Clean up some typosRichard van der Hoff
Remove redundant args from some js funcs, and fix a comment typo
2016-09-05Fix error handling for group sessionsRichard van der Hoff
Fix a couple of places where we were using the wrong method to get the last error.
2016-09-05Merge pull request #15 from matrix-org/rav/has_received_messageRichard van der Hoff
OlmSession.has_received_message
2016-09-05Fix megolm decryption of UTF-8Richard van der Hoff
Repeat the fix from b10f90d for megolm messages. It turns out that the 'length' argument to 'Pointer_stringify' doesn't work if the input includes characters >= 128. Rather than try to figure out which methods can return UTF-8, and which always return plain ascii, replace all uses of Pointer_stringify with a 'length' argument with the version that expects a NULL-terminated input, and extend the buffer by a byte to allow space for a null-terminator. In the case of decrypt, we need to add the null ourself. Fixes https://github.com/vector-im/vector-web/issues/2078.
2016-09-04OlmSession.has_received_messageRichard van der Hoff
I find myself wanting to know if an OlmSession is in the pre-key state or not, to help debugging at the application level.
2016-09-01Bump version in package.json1.1.0Richard van der Hoff
... to match the Makefile
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-07-11Prepare 1.0.0 release1.0.0Richard van der Hoff
2016-07-06JS: make sure returned strings are null-terminatedRichard van der Hoff
It turns out that the 'length' argument to 'Pointer_stringify' doesn't work if the input includes characters >= 128. Rather than try to figure out which methods can return UTF-8, and which always return plain ascii, replace all uses of Pointer_stringify with a 'length' argument with the version that expects a NULL-terminated input, and extend the buffer by a byte to allow space for a null-terminator. In the case of decrypt, we need to add the null ourself. Fixes https://github.com/vector-im/vector-web/issues/1719.
2016-05-26Put a signature on sent group messagesRichard van der Hoff
It's important that group messages be signed by the sender, rather than by a secret derived from the shared secret.
2016-05-26js group demo: use a remoteOps objectRichard van der Hoff
To make sure that we don't sneakily use methods which we wouldn't be able to for remote users, expose an interface object which contains the remote interface.
2016-05-26javascript/olm_inbound_group_session.js: fix length argRichard van der Hoff
message.length counts codepoints; we need bytes.
2016-05-25Add a demo for group messaging via the JS bindingsRichard van der Hoff
2016-05-25Javascript bindings for group sessionsRichard van der Hoff
2016-05-20Add support for building the JS wrappers to the MakefileRichard van der Hoff
Now that we have C and C++, we need to split the compile and link steps (because we need different flags for the C and C++ files), so this is easier with a Makefile.
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-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
2016-04-26Make 'npm build' build the js libRichard van der Hoff
2015-12-02Fix a console error when importing in a browserRichard van der Hoff
something about 'global' not defined
2015-12-02Tweak javascript build to make npm betterRichard van der Hoff
Build into 'javascript' dir and tell package.json exactly which files we care about.
2015-11-01switch from /usr/bin/python to /usr/bin/env python. this doesn't help folks ↵Matthew Hodgson
whose python path points at python3 (e.g. Arch linux) though, but I see no choice than they have to change the shebangs, as we do on Synapse. For instance, OSX doesn't have a python2 symlink, otherwise we'd use /usr/bin/env python2 shebang.
2015-08-04Add sha256 and ed25519_verify methods to javascript bindingsMark Haines
2015-07-21Add package.json for adding olm to npmMark Haines
2015-07-21Add more workarounds for closure compiler in javascript bindingsMark Haines
2015-07-21Fix javascript bindings: matches_inbound doesn't take an account argumentMark Haines
2015-07-20More fixes to the javascript bindings to get them to behave with browserifyMark Haines
2015-07-17Add remove_one_time_keys to the javascript bindingsMark Haines
2015-07-16Add method getting a session id. Update the python and javascript bindingsMark Haines
2015-07-14Tweak the javascript bindings so that they will work with Node.jsMark 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-08Don't pass a key id when creating a new outbound sessionMark Haines
2015-07-08Update the javascript bindings and demo to match the format of the identity ↵Mark Haines
key JSON
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-26Make sure the build dir existsMark Haines
2015-06-26Add a demo for the javascript bindingsMark Haines
2015-06-26Fix javascript bindings to correctly pass the random bufferMark Haines
2015-06-24Throw an Error object rather than a string in the javascript bindings.Mark Haines
2015-06-23Add javascript bindings using emscriptenMark Haines