Richard van der Hoff
b96762ed55
Merge branch 'master' into logging_enabled
2016-09-22 16:55:14 +01:00
Richard van der Hoff
b411f07df9
InboundGroupSession.init no longer requires a separate message_index
2016-09-22 16:24:03 +01:00
Richard van der Hoff
5e4cb07095
Add "set_log_level" to python wrapper
2016-09-22 16:20:36 +01:00
Richard van der Hoff
cfcee54a81
Handle non-base64 chars in pickle files
2016-09-22 15:09:40 +01:00
Mark Haines
d7bc00c81d
Merge pull request #23 from matrix-org/markjh/remove_message_index
...
Remove the messsage index from olm_init_inbound_group_session
2016-09-13 17:54:14 +01:00
Mark Haines
a628ef41bd
Remove the messsage index from olm_init_inbound_group_session since it is read from the session_key
2016-09-13 17:51:02 +01:00
Mark Haines
6971f54fea
Add a olm_inbound_group_session_id method
2016-09-13 17:02:36 +01:00
Richard van der Hoff
0c462cff11
Fix Ed25519 keypair generation
...
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-09-01 13:35:23 +01:00
Richard van der Hoff
27b57c8d88
Merge branch 'rav/more_group_chat/1'
2016-05-25 15:46:50 +01:00
Richard van der Hoff
8d55954ce1
Avoid use of jq in test_olm
...
I want to use test_olm.sh on jenkins, which lacks jq. Hence, add support to
olm.main to get id and one-time keys individually.
2016-05-24 16:50:26 +01:00
Richard van der Hoff
a49d7284f3
add a script for jenkins to run
2016-05-24 14:45:32 +01:00
Richard van der Hoff
846ab858a6
Python wrapper: support for inbound group sessions
2016-05-24 13:40:21 +01:00
Richard van der Hoff
8b1514c0a6
Implement functions to get the state of outbound session
...
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-24 13:39:34 +01:00
Richard van der Hoff
e545ad7eaf
Outbound group session support in the python wrappers
2016-05-24 13:39:34 +01:00
Richard van der Hoff
7ccaae564a
Refactor python wrappers
...
Split the python wrappers into separate modules
2016-05-20 15:25:43 +01:00
Matthew Hodgson
28622db92f
switch from /usr/bin/python to /usr/bin/env python. this doesn't help folks 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-11-01 13:05:51 +00:00
Mark Haines
3468886e27
Add method getting a session id. Update the python and javascript bindings
2015-07-16 11:45:20 +01:00
Mark Haines
c965a0e619
Call the right c function from Session.matches_inbound. It was calling create_inbound_session rather than matches_inbound_session
2015-07-15 12:45:50 +01:00
Mark Haines
36d17d1cb2
Move olm.py to a python subdirectory. Add a script for testing the olm.py script
2015-07-14 11:38:43 +01:00