diff options
| -rw-r--r-- | ssh_rsa_key_util.py | 6 |
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) |
