Hubert Chathi
6f59e16b58
update function documentation
2021-11-23 22:35:10 +00:00
Hubert Chathi
29e0287ef3
add function to forget the old fallback key
2021-11-23 22:35:10 +00:00
Hubert Chathi
4127a84b3d
add function for getting length of unpublished fallback keys
...
and fix a typo
2021-11-23 22:35:10 +00:00
Hubert Chathi
b989db0117
track if fallback keys were published
2021-11-23 22:35:10 +00:00
Hubert Chathi
5039c0cc3a
fix python build
2021-11-19 15:49:12 -05:00
Hubert Chathi
98b8e35a7c
fix symbol exporting again
2021-11-19 15:28:43 -05:00
Hubert Chathi
72b8bf5334
use visibility annotation rather than version file with CMake
2021-09-16 13:45:10 -04:00
Hubert Chathi
d84c1af882
East const for consistency
2021-08-06 17:36:01 -04:00
Hubert Chathi
4d6c3ba8d1
make account const in create_outbound_session
2021-08-06 17:29:56 -04:00
Denis Kasak
b70e0b06df
Differentiate between malformed pickle objects and trailing junk data.
...
Adds the OLM_PICKLE_EXTRA_DATA error code. We fail with this code when
the pickle object looks right except for some unexpected trailing bytes
which we didn't process.
2021-07-31 01:27:43 +00:00
Denis Kasak
bdd73c5c32
Fix unpickling error handling.
2021-07-31 01:27:43 +00:00
Hubert Chathi
37c8e14e53
make functions const where possible
2021-06-16 23:22:25 -04:00
Hubert Chathi
7263c4221b
add functions to get the error codes rather than error strings
2021-06-16 22:40:14 -04:00
Denis Kasak
b90f9ee7d3
Fix typo in docstring (repeated word).
2021-06-04 22:24:15 +00:00
Denis Kasak
6ed8d687e8
Document olm_create_inbound_session_from properly.
...
The old docstring was the same as olm_create_inbound_session and didn't
explain the difference between them.
2021-06-04 22:24:15 +00:00
Denis Kasak
e82f2601b0
Fail decoding base64 of invalid length.
...
olm::decode_base64 now returns the length of the raw decoded data on
success. When given input with an invalid base64 length, it fails early
(before decoding any input) and returns -1.
This also makes the C function _olm_decode_base64 an actual binding of
olm::decode_base64 instead of a wrapper with slightly different
behaviour.
2021-05-24 15:50:14 +02:00
Lukas Lihotzki
7f53dedca6
Declare olm_sas_calculate_mac_fixed_base64 in header
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-04-27 16:18:33 -04:00
Hubert Chathi
dbbf467075
Merge branch 'manu/swift_package_manager' into 'master'
...
Xcode: Add support of Swift Package Manager
See merge request matrix-org/olm!19
2021-04-06 18:22:51 +00:00
manuroe
09fbb9e966
Xcode: Add support of Swift Package Manager
...
Made by Johennes at https://github.com/matrix-org/olm/issues/51#issuecomment-809128833
2021-04-02 19:16:11 +02:00
Matthew Hodgson
09384b4d45
spell ephemeral correctly...
2021-03-18 01:29:23 +00:00
Saúl Ibarra Corretgé
2ef1f6f4fc
SAS: add olm_sas_is_their_key_set
...
Also make olm_sas_generate_bytes fail if their key wasn't set.
2020-09-23 15:27:55 -04:00
Hubert Chathi
c47c6ca399
fix style
2020-09-16 16:14:23 -04:00
Hubert Chathi
171044f3fc
add support for fallback keys
2020-08-14 17:29:41 -04:00
Hubert Chathi
fc423fad15
check return value of snprintf, fix typo, add clarification
2019-10-08 17:44:09 -04:00
David Baker
b482321213
Pass in a buffer to olm_session_describe
...
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-04 11:43:40 +01:00
David Baker
e73a208fb2
doc string
2019-10-01 11:18:05 +01:00
David Baker
39a1ee0b18
Add olm_session_describe
...
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-10-01 11:14:16 +01:00
David Baker
b83a0c0992
Fix comment and also js build
...
The python that searches the header files for exports isn't smart
enough to know what is a comment and what isn't, so it picks this
up too and emscripten then complains about it being undefined.
2019-09-30 13:19:23 +01:00
Hubert Chathi
4bb039a98e
fix another incorrect comment
2019-06-12 16:22:15 -04:00
Hubert Chathi
3ed150edf7
use the right error in the comment
2019-06-12 11:22:28 -04:00
Hubert Chathi
969c8b45e5
add more consts and comments
2019-05-14 22:02:50 -04:00
Hubert Chathi
0757e6df40
add comment about input buffers being overwritten
...
also make some params const where possible
2019-05-14 12:53:19 -04:00
manuroe
3609227c6e
Fix arg name in comments
...
(cherry picked from commit c0a53ebaeda420f636698b99c393868d2bf8f905)
2019-04-10 23:26:02 +02:00
Hubert Chathi
3148157ea4
add support for an incorrect KDF that snuck into Riot 1.0
2019-04-02 23:39:05 -04:00
Hubert Chathi
0348f06a56
rename functions to be more consistent
2019-03-13 22:39:21 -04:00
David Baker
621097f62b
Yay for incorrect comments breaking the build...
2019-01-30 18:18:55 +00:00
David Baker
8df2ab7c07
Add signing class to the pk module
2019-01-29 20:47:41 +00:00
Hubert Chathi
94f664e725
initial implementation of short authentication string generation
2019-01-21 23:21:41 -05:00
manuroe
2784e49595
Merge pull request #70 from matrix-org/manuroe/objc_pk
...
OLMKit: Add objc wrappers for pk encryption/decryption
2018-10-22 08:25:41 +02:00
Hubert Chathi
09dc3b6025
document a couple more places where olm clobbers things
2018-10-16 16:13:09 -04:00
manuroe
2ea2bc8ebc
Fix compilation warning for olm_pk_private_key_length(void);
2018-10-16 15:52:41 +02:00
David Baker
fac1d52dfe
Add aliases for deprecated functions
2018-10-11 18:16:39 +01:00
Hubert Chathi
f6e3f7f44a
Merge branch 'master' into dbkr/pk_private_export_import
2018-10-05 14:52:01 -04:00
Hubert Chathi
173339ae9a
add more comments describing the pk encrypt/decrypt functions
2018-10-05 10:35:09 -04:00
Hubert Chathi
8520168e0b
fix some code style issues and typos
2018-10-05 10:35:09 -04:00
David Baker
0346145a81
Work with PkDecryption keys by their private keys
...
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-02 12:02:56 +01:00
Hubert Chathi
dac2c1064e
use void in type signatures for functions with no arguments
2018-06-28 17:13:52 -04:00
Hubert Chathi
f709b062bb
add functions for pickling/unpickling a decryption object
2018-06-28 17:10:36 -04:00
Hubert Chathi
128d45cc83
add initial implementation of basic private key encryption functionality
2018-06-27 16:38:45 -04:00
Hubert Chathi
6a2a2741e8
fix some comments
2018-06-27 16:35:15 -04:00