diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-03-28 19:55:48 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-04 18:27:39 +0200 |
commit | 205a63808addb6269d3e98c5a60ab188afe8a9a5 (patch) | |
tree | 501c566fb1da9ac8488471f1b0d8dfbcefe8c6e6 /client | |
parent | bd677371618e3fe3d8e8b91ab7cab6663152f18c (diff) |
[bug] use soledad_assert instead of assert
Diffstat (limited to 'client')
-rw-r--r-- | client/src/leap/soledad/client/_crypto.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/_crypto.py b/client/src/leap/soledad/client/_crypto.py index 85dbb138..700449bb 100644 --- a/client/src/leap/soledad/client/_crypto.py +++ b/client/src/leap/soledad/client/_crypto.py @@ -82,6 +82,7 @@ from twisted.internet import defer from twisted.internet import interfaces from twisted.web.client import FileBodyProducer +from leap.soledad.common import soledad_assert from cryptography.exceptions import InvalidTag from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends.multibackend import MultiBackend @@ -347,8 +348,8 @@ class BlobDecryptor(object): self.tag = None preamble, iv = self._consume_preamble() - assert preamble - assert iv + soledad_assert(preamble) + soledad_assert(iv) self._aes = AESWriter(sym_key, iv, self.result, tag=tag or self.tag) self._aes.authenticate(preamble) |