[noise] [NoiseSocket] First handshake message parsing questions

Alexey Ermishkin scratch.net at gmail.com
Mon Feb 27 20:49:15 PST 2017

Sure, I'll let you know

-----Original Message-----
From: Trevor Perrin [mailto:trevp at trevp.net] 
Sent: Tuesday, February 28, 2017 9:32 AM
To: Alexey Ermishkin <scratch.net at gmail.com>
Cc: noise <noise at moderncrypto.org>
Subject: Re: [noise] [NoiseSocket] First handshake message parsing questions

On Mon, Feb 27, 2017 at 8:27 PM, Alexey Ermishkin <scratch.net at gmail.com> wrote:
> Thanks, will add this to the spec.
> One more question left :)
> When we calculate the prologue, its first byte is the amount of sub-messages we have in the first message.
> Maybe we should add this byte to the first message itself (right after length)?
> Instead of crawling through the message till EOF we then could use the 
> simple for-loop to iterate over N sub-messages

I would say do whatever makes sense to you - you're working on some code so you'll have a better feel for small decisions.

(Once you've got the spec and some working code it'll be easier for me and others here to give feedback and see if we want to debate things like this).


More information about the Noise mailing list