[noise] Noise test vector format

Alex alex at centromere.net
Thu Nov 12 10:31:36 PST 2015


On Thu, 12 Nov 2015 10:25:18 -0800
Trevor Perrin <trevp at trevp.net> wrote:

> On Thu, Nov 12, 2015 at 10:09 AM, Alex <alex at centromere.net> wrote:
> > On Tue, 10 Nov 2015 19:08:51 -0800
> > Trevor Perrin <trevp at trevp.net> wrote:
> >  
> >> Below's a simple text format for test vectors.  An implementation
> >> could scan a file full of tests and and check any handshakes it
> >> supports.  For example:
> >>
> >> random_i=<hex>
> >> random_r=<hex>  
> >
> > Won't you need need four? initiator/responder and
> > static/ephemeral.  
> 
> I was imagining random bytes are taken sequentially, so as long as
> random_i is long enough it would be used for the static, then
> ephemeral, and other random fields if we add those.
> 

But then it's ambiguous (from looking at the format alone) which key
comes first (static vs. ephemeral). I think it would be more readable
to have four 32-byte values (assuming Curve25519) rather than raw
output from a RNG.

-- 
Alex


More information about the Noise mailing list