Skip to content
Permalink
Browse files
Modify crypto nonce for python3 support
  • Loading branch information
paraschetal committed Mar 1, 2017
1 parent 67252eb commit c09c9c723806d933445c5a33bceb20d31dcb99d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 stem/descriptor/hidden_service_descriptor.py
@@ -326,7 +326,7 @@ def _decrypt_basic_auth(content, authentication_cookie):

# try decrypting the session key

cipher = Cipher(algorithms.AES(authentication_cookie), modes.CTR('\x00' * len(iv)), default_backend())
cipher = Cipher(algorithms.AES(authentication_cookie), modes.CTR(stem.util.str_tools._to_bytes('\x00' * len(iv))), default_backend())
decryptor = cipher.decryptor()
session_key = decryptor.update(encrypted_session_key) + decryptor.finalize()

0 comments on commit c09c9c7

Please sign in to comment.