diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-01 00:51:00 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-01 00:51:00 -0700 |
commit | fee18142a58dce099dd7a9bcb93d124a539cc55c (patch) | |
tree | f2345b9f8d93211dafe3175a16aac40f4103e7df /paramiko/rsakey.py | |
parent | 8a7267beeb3435fa16c06d22c201650e1e593d89 (diff) | |
download | paramiko-fee18142a58dce099dd7a9bcb93d124a539cc55c.tar.gz |
Fixes for Python 2.5 and Python 3.2 support
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r-- | paramiko/rsakey.py | 2 |
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 |