aboutsummaryrefslogtreecommitdiff
path: root/python/olm/session.py
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-16 00:04:45 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-16 00:04:45 -0400
commit357d4ff4795d89d623663b3996ddd2dfd4990971 (patch)
tree0574780b0fcaa849eff25b8ddf73a7ff4ebe5312 /python/olm/session.py
parent019ff702a0f8e8015a70b03a5370d518c1b1dafb (diff)
remove unnecessary comments about not enough random
Diffstat (limited to 'python/olm/session.py')
-rw-r--r--python/olm/session.py8
1 files changed, 2 insertions, 6 deletions
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