[noise] Noise test vector format

Trevor Perrin trevp at trevp.net
Fri Nov 13 13:26:46 PST 2015


On Fri, Nov 13, 2015 at 10:49 AM, Alex <alex at centromere.net> wrote:
>
> I've created a sample test vector for Noise_NN. Before I spend time on
> the rest of the handshakes, does this look like a reasonable format?:
>
> http://lpaste.net/8887995761745199104

For reference:

handshake=Noise_NN_25519_ChaChaPoly_SHA256
init_static=490ce8da41d2e6931cdea70b7d6cf321a82e1b091622a9b341601238d3a97443
resp_static=179d3712fc0094ac9485dacf38dd7990d1a84658e05365725fb27c992e1c6726
resp_ephemeral=3ce79797b4d99210497da04ea3694b63a2d259a852d5ce26676da9721a5b5c27
gen_init_ephemeral=0061147d31f6896e9133e2b26779bb0516c04a05ed6d7b725d52170c1acd999d
gen_resp_ephemeral=33ddd151a1a0d2cde8e665f0e7dd0b7d8bf5724ff464b489f1f208e4f7bc0667
msg_0_payload=6361636f70686f6e79
msg_0_ciphertext=38c6edef130cb6e318f08a64b7400890a8aaffefeb26b0440e2604b65ba1c74c6361636f70686f6e79
msg_1_payload=6361636f70686f6e79
msg_1_ciphertext=d84285d7856fd76d3f2863cdd619e8e0552546e3eb00acafa3235781ee6cbb38e922caf076cfd365ffb877d526e2a6d75fe17020ae78e8b759
msg_2_payload=6361636f70686f6e79
msg_2_ciphertext=10220935c53739ef05ffd7202c516ed0fcc453513bfb061636
msg_3_payload=6361636f70686f6e79
msg_3_ciphertext=3a4282ed3e1c9fe095cbca341c22c405c70688d61ba2926e90


> In the specific case of NN the init_static, resp_static, and
> resp_ephemeral keys are superfluous given that they are not passed to
> Initialize().

I would not list superfluous keys.  Also, I'm not sure what "gen_"
stands for, maybe there's a better name.


> Also, it would be awesome if someone could verify this one vector to see
> if it is correct.

I generated the same public keys, but then a different ciphertext for
the msg_1, but haven't looked into why.

Trevor


More information about the Noise mailing list