Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What part of paramiko's response is actually the signature? #4

Open
zommuter opened this issue Oct 12, 2015 · 1 comment
Open

What part of paramiko's response is actually the signature? #4

zommuter opened this issue Oct 12, 2015 · 1 comment

Comments

@zommuter
Copy link
Owner

The first 15 bytes (using a 2048bit RSA key) seem to contain information about the signature method itself, are they to be considered part of the signature or not? And is it always 15 bytes? d5020b9

@zommuter
Copy link
Owner Author

zommuter commented Oct 12, 2015

side notes:

ptype, result = self.agent._send_message(msg)

def _send_message(self, msg):

    msg = asbytes(msg)
    self._conn.send(struct.pack('>I', len(msg)) + msg)
    l = self._read_all(4)
    msg = Message(self._read_all(struct.unpack('>I', l)[0]))
    return ord(msg.get_byte()), msg

@zommuter zommuter changed the title Should paramiko's first 15 bytes be stripped? What part of paramiko's response is actually the signature? Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant