1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Import PSK as opaque PSA key for mbedtls_ssl_conf_psk() & mbedtls_ssl_set_hs_psk()

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong
2022-05-03 09:35:09 +02:00
parent 4c3b4e079c
commit 501c93220d
3 changed files with 88 additions and 1 deletions

View File

@ -1427,6 +1427,7 @@ struct mbedtls_ssl_config
* If either no PSK or a raw PSK have been
* configured, this has value \c 0.
*/
uint8_t MBEDTLS_PRIVATE(psk_opaque_is_internal);
#endif /* MBEDTLS_USE_PSA_CRYPTO */
unsigned char *MBEDTLS_PRIVATE(psk); /*!< The raw pre-shared key. This field should