Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def read_fields(bytes):
    off = 0
    while off < len(bytes):
        l = s2i(bytes[off:])
        off += 4
        yield bytes[off:off + l]
        off += l
        


src/c/r/crtauth-HEAD/crtauth/ssh.py   crtauth(Download)
        assert response_code == SSH2_AGENT_IDENTITIES_ANSWER
        resp = self.sock.recv(length - 5)
        fields = rsa.read_fields(resp)
        for i in xrange(count):
            try:
            assert response_code == SSH2_AGENT_SIGN_RESPONSE
            buf = self.sock.recv(length - 5)
            fields = rsa.read_fields(buf)
            response_type = fields.next()
            assert response_type == "ssh-rsa"