summaryrefslogtreecommitdiff
path: root/paramiko/rsakey.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-19 10:09:08 -0800
committerScott Maxwell <scott@codecobblers.com>2013-11-19 10:09:08 -0800
commit6d75c75e643c3a109075e86e72b08221c76088cc (patch)
tree95dd49cbe6d9d194f337a8ae5310800a2f103430 /paramiko/rsakey.py
parent981f768a62402a5aaa9f9f0ddfb4e14faa0d4442 (diff)
downloadparamiko-6d75c75e643c3a109075e86e72b08221c76088cc.tar.gz
Remove byte conversions and unhexlify calls that we only needed for Py2.5 support and use the `b` byte string marker instead
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r--paramiko/rsakey.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index 0a271198..65f1463d 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -20,7 +20,6 @@
L{RSAKey}
"""
-from binascii import unhexlify
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA, MD5
from Crypto.Cipher import DES3
@@ -32,7 +31,7 @@ from paramiko.ber import BER, BERException
from paramiko.pkey import PKey
from paramiko.ssh_exception import SSHException
-SHA1_DIGESTINFO = unhexlify(b('3021300906052b0e03021a05000414'))
+SHA1_DIGESTINFO = b'\x30\x21\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05\x00\x04\x14'
class RSAKey (PKey):