Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-06 | bump version numbers and update changelog3.2.0 | Hubert Chathi | |
2020-10-06 | use stackAlloc instead of allocate | Lukas Lihotzki | |
2020-10-03 | do not pollute the global object | Lukas Lihotzki | |
2020-09-23 | SAS: add olm_sas_is_their_key_set | Saúl Ibarra Corretgé | |
Also make olm_sas_generate_bytes fail if their key wasn't set. | |||
2020-09-01 | Merge branch 'master' into uhoreg/fallback | Hubert Chathi | |
2020-08-31 | allow some things to be Uint8Array, and fix some TypeScript declarations | Hubert Chathi | |
2020-08-14 | add support for fallback keys | Hubert Chathi | |
2020-07-04 | Fix group demo to work with > 2 users | Saúl Ibarra Corretgé | |
Add 4 by default, and make sure OT keys are not reused. | |||
2020-06-11 | bump version info for release3.1.5 | Hubert Chathi | |
2020-05-16 | fix group demo to work with Olm.init() | Matthew Hodgson | |
2020-05-16 | fix 1:1 demo to work with Olm.init() | Matthew Hodgson | |
2020-05-16 | spell out error msg if you don't Olm.init | Matthew Hodgson | |
2020-05-13 | add a note about calling Olm.init | Hubert Chathi | |
2020-05-07 | fix type signature of unpickle in Inbound/OutboundGroupSession | Hubert Chathi | |
Thanks to Dominic Fischer for spotting. | |||
2020-04-29 | add missing declaration for PkDecryption#decrypt and SAS class | Hubert Chathi | |
2020-04-24 | add declarations for Inbound/OutboundGroupSession | Hubert Chathi | |
2020-04-24 | initial TypeScript definition file | Hubert Chathi | |
2019-10-09 | release 3.1.43.1.4 | Hubert Chathi | |
2019-10-04 | Pass in a buffer to olm_session_describe | David Baker | |
instead of having a static one, as that could end up taking up a lot of memory if your app keeps olm sessions hanging about. | |||
2019-10-01 | Add olm_session_describe | David Baker | |
As a way to dump the state of an olm session, ie. the chain indicies, so we can debug why olm sessions break and get out of sync. | |||
2019-06-24 | release 3.1.33.1.3 | Hubert Chathi | |
2019-04-30 | release 3.1.23.1.2 | Hubert Chathi | |
2019-04-29 | bump version number for 3.1.13.1.1 | Hubert Chathi | |
2019-04-17 | prepare for 3.1.0 release | Hubert Chathi | |
2019-04-08 | re-add null termination in javascript | Hubert Chathi | |
because older versions of emscripten don't support the length argument to UTF8ToString. | |||
2019-04-08 | javascript: Switch from deprecated Pointer_stringify() to UTF8toString(). | Damir Jelić | |
The Pointer_stringify() function is deprecated and has a couple of issues because it tries to guess the encoding of the buffer. In some cases it can ignore the length parameter which could end up in inconsistencies. Switch to UTF8toString() that takes a length parameter and respects, that way we don't need to allocate an additional byte for a NULL byte. | |||
2019-04-02 | add support for an incorrect KDF that snuck into Riot 1.0 | Hubert Chathi | |
2019-03-13 | rename functions to be more consistent | Hubert Chathi | |
2019-02-01 | call the right function and remove unnecessary include | Hubert Chathi | |
2019-01-29 | Add signing class to the pk module | David Baker | |
2019-01-21 | initial implementation of short authentication string generation | Hubert Chathi | |
2018-10-23 | prepare release 3.0.0 | Hubert Chathi | |
2018-10-23 | include the non-wasm version in the package | Hubert Chathi | |
2018-10-16 | zero buffers in the JavaScript bindings | Hubert Chathi | |
2018-10-16 | also ignore the non-wasm JS file | Hubert Chathi | |
2018-10-10 | Merge remote-tracking branch 'origin/master' into dbkr/pk_private_export_import | David Baker | |
2018-10-05 | Merge branch 'master' into dbkr/pk_private_export_import | Hubert Chathi | |
2018-10-05 | Merge branch 'master' into dbkr/wasm | Hubert Chathi | |
2018-10-05 | remove unneeded polyfill | Hubert Chathi | |
2018-10-05 | fix some code style issues and typos | Hubert Chathi | |
2018-10-04 | Dual-build wasm and asm.js olm | David Baker | |
2018-10-02 | Add an export for the length of a private key | David Baker | |
2018-10-02 | Work with PkDecryption keys by their private keys | David Baker | |
Change interface to allow the app to get the private part of the key and instantiate a decryption object from just the private part of the key. Changes the function generating a key from random bytes to be initialising a key with a private key (because it's exactly the same thing). Exports & imports private key parts as ArrayBuffer at JS level rather than base64 assuming we are moving that way in general. | |||
2018-10-01 | Call appropriate wrapper function | David Baker | |
Don't think this matters since there's no PkEncryption / PkDecryption object being passed, but for the sake of consistency | |||
2018-09-26 | Support passing olm options into init() | David Baker | |
2018-09-25 | Return same promise if init() called many times | David Baker | |
So we only init the library once. | |||
2018-09-25 | Another day, another interface | David Baker | |
Change the interface again, hopefully this time a bit more normal. Now we wrap the emscripten module completely and just expose the high level objects. The olm library export is now imported as normal (ie. returns a module rather than a function returning a module) but has an `init` method which *must* be called. This returns a promise which resolves when the module is ready. It also rejects if the module failed to set up, unlike before (and unlike the promise-not-a-promise that emscripten returns). Generally catch failures to init the module. | |||
2018-09-21 | Also ship the wasm file | David Baker | |
2018-09-21 | Make OLM_OPTIONS work again | David Baker | |
The closure compiler was just renaming the variable so it never would have picked them up. Make it an extern so it knows what to do. | |||
2018-09-21 | WebAssembly support! | David Baker | |
Quite a lot going on in this PR: * Updates to support recent emscripten, switching to WASM which is now the default * Use emscripten's MODULARIZE option rather than wrapping it ourself, since doing so in pre-post js doesn't work anymore. * Most changes are moving the emscripten runtime functions to top-level calls rather than in the Module object. * Get rid of duplicated NULL_BYTE_PADDING_LENGTH * Fix ciphertext_length used without being declared * Fix things that caused the closure compiler to error, eg. using OLM_OPTIONS without a declaration. * Wait until module is inited to do OLM_ERROR = olm_error() The main BREAKING CHANGE here is that the module now needs to initialise asyncronously (because it has to load the wasm file). require()ing olm now gives a function which needs to be called to create an instance. The resulting object has a promise-like then() method that can be used to detect when the module is ready. (We could use MODULARIZE_INSTANCE to return the module directly as before, rather than the function, but then we don't get the .then() method). |