diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/olm/account.py | 4 | ||||
-rw-r--r-- | python/olm/group_session.py | 3 | ||||
-rw-r--r-- | python/olm/session.py | 8 |
3 files changed, 4 insertions, 11 deletions
diff --git a/python/olm/account.py b/python/olm/account.py index 170f94e..1dba96d 100644 --- a/python/olm/account.py +++ b/python/olm/account.py @@ -206,9 +206,7 @@ class Account(object): If the total number of keys stored by this account exceeds max_one_time_keys() then the old keys are discarded. - Raises OlmAccountError on error. If the number of random bytes is - too small then the error message of the exception will be - NOT_ENOUGH_RANDOM. + Raises OlmAccountError on error. Args: count(int): The number of keys to generate. diff --git a/python/olm/group_session.py b/python/olm/group_session.py index 5656e5a..bbb5e56 100644 --- a/python/olm/group_session.py +++ b/python/olm/group_session.py @@ -314,8 +314,7 @@ class OutboundGroupSession(object): """Create a new outbound group session. Start a new outbound group session. Raises OlmGroupSessionError on - failure. If there weren't enough random bytes for the session creation - the error message for the exception will be NOT_ENOUGH_RANDOM. + failure. """ if False: # pragma: no cover self._session = self._session # type: ffi.cdata diff --git a/python/olm/session.py b/python/olm/session.py index eba63d4..b123e8a 100644 --- a/python/olm/session.py +++ b/python/olm/session.py @@ -212,9 +212,7 @@ class Session(object): def encrypt(self, plaintext): # type: (AnyStr) -> _OlmMessage """Encrypts a message using the session. Returns the ciphertext as a - base64 encoded string on success. Raises OlmSessionError on failure. If - there weren't enough random bytes to encrypt the message the error - message for the exception will be NOT_ENOUGH_RANDOM. + base64 encoded string on success. Raises OlmSessionError on failure. Args: plaintext(str): The plaintext message that will be encrypted. @@ -424,9 +422,7 @@ class OutboundSession(Session): identity key and one-time key. Raises OlmSessionError on failure. If the keys couldn't be decoded as - base64 then the error message will be "INVALID_BASE64". If there - weren't enough random bytes for the session creation the error message - for the exception will be NOT_ENOUGH_RANDOM. + base64 then the error message will be "INVALID_BASE64". Args: account(Account): The Olm Account that will be used to create this |