summaryrefslogtreecommitdiff
path: root/paramiko/rsakey.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-01 00:51:00 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-01 00:51:00 -0700
commitfee18142a58dce099dd7a9bcb93d124a539cc55c (patch)
treef2345b9f8d93211dafe3175a16aac40f4103e7df /paramiko/rsakey.py
parent8a7267beeb3435fa16c06d22c201650e1e593d89 (diff)
downloadparamiko-fee18142a58dce099dd7a9bcb93d124a539cc55c.tar.gz
Fixes for Python 2.5 and Python 3.2 support
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r--paramiko/rsakey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index 4bc94e0b..b4222a35 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -158,7 +158,7 @@ class RSAKey (PKey):
turn a 20-byte SHA1 hash into a blob of data as large as the key's N,
using PKCS1's \"emsa-pkcs1-v1_5\" encoding. totally bizarre.
"""
- SHA1_DIGESTINFO = unhexlify('3021300906052b0e03021a05000414')
+ SHA1_DIGESTINFO = unhexlify(b('3021300906052b0e03021a05000414'))
size = len(util.deflate_long(self.n, 0))
filler = max_byte * (size - len(SHA1_DIGESTINFO) - len(data) - 3)
return zero_byte + one_byte + filler + zero_byte + SHA1_DIGESTINFO + data