- 19 Jun, 2019 1 commit
-
-
poljar authored
The to_native_str function was supposed to produce Unicode decoded native strings for python2 and python3. Upon further consideration this doesn't make much sense since under python2 it would need to decode the bytes into a Unicode string and turn it back into a python2 str. The ability to use the replacement character requires us to use a Unicode string under python2 as well.
-
- 18 Jun, 2019 1 commit
-
-
poljar authored
This patch changes the decryption functions not to fail if there was an unicode decode error while converting the decrypted bytes plaintext into a native python string. Characters that cannot be decoded as unicode are now replaced with the unicode replacement character (U+FFFD). The old behaviour of raising an UnicodeDecodeError can be achieved by passing the "strict" error handling scheme to the decrypt function.
-
- 12 Apr, 2019 1 commit
-
-
Hubert Chathi authored
-
- 08 Apr, 2019 2 commits
-
-
Hubert Chathi authored
-
This patch adds bindings to the PK part of the Olm library contained in the pk.h header file. Encryption, decryption as well as pickling/unpickling of the decryption object is supported. Signed-off-by:
Damir Jelić <poljar@termina.org.uk>
-