mbedtls/include
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
..
mbedtls Merge pull request #7682 from valeriosetti/issue7453 2023-06-22 09:45:57 +02:00
psa Change J-PAKE internal state machine 2023-06-22 15:22:35 +01:00
.gitignore
CMakeLists.txt Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00