diff options
Diffstat (limited to 'openid/dh.py')
-rw-r--r-- | openid/dh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openid/dh.py b/openid/dh.py index 28ff403..46a05ed 100644 --- a/openid/dh.py +++ b/openid/dh.py @@ -60,5 +60,5 @@ class DiffieHellman(object): def xorSecret(self, composite, secret, hash_func): dh_shared = self.getSharedSecret(composite) - hashed_dh_shared = hash_func(cryptutil.longToBinary(dh_shared)) + hashed_dh_shared = hash_func(cryptutil.int_to_bytes(dh_shared)) return strxor(secret, hashed_dh_shared) |