aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2010-11-16 00:39:51 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2010-11-16 00:39:51 -0500
commit20860ea10a8c05170d1bb3a0c99a6da4768f32d9 (patch)
treee877ea4a14a5696bf3f34b9f082d158f54d90f1d
parentd4d8353b27bd499da8c1790f786a263bbf33600b (diff)
downloadalias-20860ea10a8c05170d1bb3a0c99a6da4768f32d9.tar.gz
Further cleanups in ssh_rsa_key_util.py
-rw-r--r--ssh_rsa_key_util.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/ssh_rsa_key_util.py b/ssh_rsa_key_util.py
index e4cd5ba..d77577f 100644
--- a/ssh_rsa_key_util.py
+++ b/ssh_rsa_key_util.py
@@ -24,7 +24,6 @@ def read_chunk(buffer, i):
raise Exception("got chunk length of %d, that's certainly too long" % l)
# read chunk of length l
- #(s,) = struct.unpack('!' + '%ds' % l, buffer[i:i + l])
(s,) = struct.unpack('!{0:d}s'.format(l), buffer[i:i + l])
i += l
return (s, i)
@@ -48,11 +47,9 @@ def read_rsa_pub(filename):
# grab e
(s, i) = read_chunk(raw, i)
- #e = unpack_bigint(s)
e = util.BytesToLong(s)
# grab n
(s, i) = read_chunk(raw, i)
- #n = unpack_bigint(s)
n = util.BytesToLong(s)
return (n, e, host)
@@ -63,9 +60,6 @@ def write_rsa_pub(filename, n, e, host):
base64data: [7]ssh-rsa[len][e-data][len][n-data]
"""
-
- #e_str = pack_bigint(e)
- #n_str = pack_bigint(n)
e_str = util.BigIntToBytes(e)
n_str = util.BigIntToBytes(n)