aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-06 21:19:25 +0000
committerGravatar jesopo2019-02-06 21:19:25 +0000
commit67252833c4224adae3787e4e94bd7e8022dc9639 (patch)
treeaa6f8a6cf9a6ef1dc78cf3871c396736f3f46205
parentRemove pointless local assign of self._password (sasl.scram) (diff)
signature
Remove pointless local salted_password variable (sasl.scram)
-rw-r--r--modules/sasl/scram.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/sasl/scram.py b/modules/sasl/scram.py
index 26fcbc95..8e5bb1fd 100644
--- a/modules/sasl/scram.py
+++ b/modules/sasl/scram.py
@@ -56,11 +56,10 @@ class SCRAM(object):
salt = base64.b64decode(pieces[b"s"])
iterations = pieces[b"i"]
- salted_password = hashlib.pbkdf2_hmac(self._algo, self._password, salt,
- int(iterations), dklen=None)
- self._salted_password = salted_password
+ self._salted_password = hashlib.pbkdf2_hmac(self._algo, self._password,
+ salt, int(iterations), dklen=None)
- client_key = self._hmac(salted_password, b"Client Key")
+ client_key = self._hmac(self._salted_password, b"Client Key")
stored_key = self._hash(client_key)
channel = base64.b64encode(b"n,,")