diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-02-11 01:20:33 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-02-11 01:20:33 +0100 |
commit | f2fa5804879f6d7614d05537b042be3586958e7f (patch) | |
tree | faba24b3afe00ac8e664b7a465ee32f96da73ddf /src/leap/mail/adaptors | |
parent | 51e6f7a5eb8cb3e5bd69e4c55c5360b37a6f2111 (diff) |
[feat] Use cryptography instead of pycryptopp to reduce dependencies.
* Resolves: #7889
Diffstat (limited to 'src/leap/mail/adaptors')
-rw-r--r-- | src/leap/mail/adaptors/soledad.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/mail/adaptors/soledad.py b/src/leap/mail/adaptors/soledad.py index 7f2b1cf..f4af020 100644 --- a/src/leap/mail/adaptors/soledad.py +++ b/src/leap/mail/adaptors/soledad.py @@ -22,7 +22,6 @@ import re from collections import defaultdict from email import message_from_string -from pycryptopp.hash import sha256 from twisted.internet import defer from twisted.python import log from zope.interface import implements @@ -1208,7 +1207,7 @@ def _split_into_parts(raw): def _parse_msg(raw): msg = message_from_string(raw) parts = walk.get_parts(msg) - chash = sha256.SHA256(raw).hexdigest() + chash = walk.get_hash(raw) multi = msg.is_multipart() return msg, parts, chash, multi |