First NTS code

Eric S. Raymond esr at thyrsus.com
Tue Jan 29 11:19:06 UTC 2019


Hal Murray <hmurray at megapathdsl.net>:
> 
> Eric said:
> >> They are mostly binary blobs: cookies, keys, nonces, ...
> >> It might be worth packaging blob and length into a struct.
> > OK.  That's inside-NTS work - do as you like there. I need to concentrate
> > elsewhere for a bit. 
> 
> How about packaging the blob of bits with a 4 byte header: 2 bytes of length 
> and 2 bytes of tag/type/whatever?  The idea is to match NTP extensions and 
> similar.
> 
> We have to byte swap the header word.  I think the other stuff is a stream of 
> bytes and doesn't get swapped.  I think things like crypto code have to work 
> in byte swapped mode when do word operations on a little endian system.

Sorry, I've lost the context.  There are many binary blobs you could
be talking about and I can't connect this remark to just one.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.




More information about the devel mailing list