[noise] Test vector format
Alex
alex at centromere.net
Sun Apr 10 18:14:11 PDT 2016
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?
--
Alex
More information about the Noise
mailing list