[noise] Test vector format
Trevor Perrin
trevp at trevp.net
Sun Apr 10 20:04:36 PDT 2016
On Sun, Apr 10, 2016 at 6:14 PM, Alex <alex at centromere.net> wrote:
> On Sat, 9 Apr 2016 12:40:46 -0700
> Trevor Perrin <trevp at trevp.net> wrote:
>
>> Not sure I follow. I think there's two cases for processing a
>> "payload"/"ciphertext" test element:
>>
>> Assuming the test framework manages two HandshakeStates, A and B, for
>> a non-error case you can test:
>>
>> - "payload -> A.writeMessage() -> "ciphertext"
>> - "ciphertext" -> B.readMessage() -> "payload"
>>
>> For the error case you only test:
>>
>> - "ciphertext" -> B -> ERROR
>>
>> So I don't see why you'd need the "payload" in the error case?
>>
>
> Is it safe to say that there can be only one failure per vector?
>
> Is it also safe to say that, if there is a failure, it must be the last
> message in the "messages" array?
Those both sound reasonable.
Trevor
More information about the Noise
mailing list