David Horstmann e7f21e65b6 Change J-PAKE internal state machine
Keep track of the J-PAKE internal state in a more intuitive way.
Specifically, replace the current state with a struct of 5 fields:

* The round of J-PAKE we are currently in, FIRST or SECOND
* The 'mode' we are currently working in, INPUT or OUTPUT
* The number of inputs so far this round
* The number of outputs so far this round
* The PAKE step we are expecting, KEY_SHARE, ZK_PUBLIC or ZK_PROOF

This should improve the readability of the state-transformation code.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-06-22 15:22:35 +01:00
..
2023-04-13 15:34:43 +01:00
2023-03-21 16:28:00 +01:00
2023-03-21 16:28:00 +01:00
2023-03-21 16:28:00 +01:00
2023-03-21 16:29:31 +01:00
2023-06-07 18:27:09 +01:00
2023-06-06 10:33:54 +02:00
2023-03-31 18:04:34 +01:00