mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 18:15:27 +00:00
6fb638b2fb
After and performing key generation operations, the client-side outgoing ClientKeyExchange handling includes code-paths to assembly the PreMasterSecret (PMS) from the available keying material, the exact assembly procedure depending on which ciphersuite is in use. E.g., in an (EC)DHE-PSK ciphersuite, the (EC)DHE secret would be concatenated with the PSK to form the PMS. This assembly of the PMS logically can be done after the ClientKeyExchange has been written and the respective keying material has been generated, and this commit moves it to the new postprocessing function ssl_client_key_exchange_postprocess(). Ideally, the PMS assembly could be done prior to writing the ClientKeyExchange message, but the (EC)DHE API does currently not allow splitting secret-generation and secret-export; as long as that's the case, we to generation and exporting in the message writing function, forcing PMS assembly to be done in the postprocessing. |
||
---|---|---|
.. | ||
mbedtls | ||
tinycrypt | ||
.gitignore | ||
CMakeLists.txt |