[noise] NoiseSocket - next steps

Trevor Perrin trevp at trevp.net
Tue Mar 14 15:42:58 PDT 2017


On Mon, Mar 13, 2017 at 1:16 AM, Alexey Ermishkin <scratch.net at gmail.com> wrote:
> I've added prologue definition to the doc
> https://github.com/go-noisetls/noise_socket_spec/blob/master/noise_socket.md#5-prologue
>
> There's also an example of such a prologue in hex under the spoiler.
>
> Also, added 1 byte type in the second message after the index to separate IK from XXFallback. I did not quite understand what Trevor said about layers, so left just 1 byte for now

I just meant that you can think of the "index" byte as selecting a
particular "Noise Pipe" protocol, and the "message type" byte as being
part of the Noise Pipe.

You could imagine using the version-negotiation to negotiate a mix of
Noise and non-Noise protocols, i.e. your initial message could contain
a mix of Noise, QUIC, and TLS messages, and then based on the "index"
chosen by the server, the second message's contents might be totally
different.

Maybe that generality isn't worth dwelling on, I was just pointing it out.

Trevor


More information about the Noise mailing list