1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Hashing of prologues in sections

This commit is contained in:
Rhys Weatherley
2018-06-21 19:28:52 +10:00
parent 3e3e90b19e
commit 6a71e60d85
11 changed files with 166 additions and 24 deletions

View File

@@ -250,8 +250,8 @@ static void test_connection(const TestVector *vec)
/* Should be able to start the handshake now on both sides */
initiator->start
(Noise::Initiator, vec->init_prologue, vec->init_prologue_len);
responder->start
(Noise::Responder, vec->resp_prologue, vec->resp_prologue_len);
responder->start(Noise::Responder);
responder->addPrologue(vec->resp_prologue, vec->resp_prologue_len);
compare(initiator->state(), Noise::Write);
compare(responder->state(), Noise::Read);