<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 6, 2017 at 7:34 AM, Alexey Ermishkin <span dir="ltr"><<a href="mailto:scratch.net@gmail.com" target="_blank">scratch.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">By n1 (first point in my list) I thought we could use not only protocol names but also add extra info like max packet size if needed. We have 255 bytes, we can even use json for that :)<br></blockquote><div><br></div><div>Negotiation of extra parameters can occur inside the handshake payloads; e.g. the responder offers a maximum packet size in the second XX handshake packet payload together with the responder's certificate.  The initiator can reduce the maximum in the third XX handshake packet when it sends its certificate.</div><div><br></div><div>Note: I'm not saying we should do that yet.  Only pointing out that not all parameters need to be negotiated in the prologue.  Let's keep the prologue simple: it selects the Noise protocol only.</div><div><br></div><div>Cheers,</div><div><br></div><div>Rhys.<br></div></div></div></div>