mbedtls_config: fix/improve descriptions of PSA_STATIC_KEY_SLOT symbols

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-08-16 07:58:02 +02:00
parent d813e6dd3c
commit c2a6e8b3a9

View File

@ -3075,11 +3075,11 @@
* require it. * require it.
* This feature affects both volatile and persistent keys which means that * This feature affects both volatile and persistent keys which means that
* it's not possible to persistently store a key which is larger than * it's not possible to persistently store a key which is larger than
* MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE. * #MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE.
* *
* \note This feature comes with a (potentially) higher RAM usage since: * \note This feature comes with a (potentially) higher RAM usage since:
* - All the key slots are allocated no matter if they are used of not. * - All the key slots are allocated no matter if they are used of not.
* - Each key buffer's length is MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE bytes. * - Each key buffer's length is #MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE bytes.
* *
* Requires: MBEDTLS_PSA_CRYPTO_C * Requires: MBEDTLS_PSA_CRYPTO_C
* *
@ -3890,10 +3890,10 @@
/** /**
* \def MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE * \def MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE
* *
* Define the size (in bytes) of each static key slot when * Define the size (in bytes) of each static key buffer when
* MBEDTLS_PSA_STATIC_KEY_SLOTS is set. If not * #MBEDTLS_PSA_STATIC_KEY_SLOTS is set. If not
* explicitly defined then it's automatically set to hold the maximum * explicitly defined then it's automatically guessed from available PSA keys
* asymmetric PSA key enabled in the build (through PSA_WANT_xxx symbols). * enabled in the build through PSA_WANT_xxx symbols.
* If required by the application this parameter can be set to higher values * If required by the application this parameter can be set to higher values
* in order to store larger objects (ex: raw keys), but please note that this * in order to store larger objects (ex: raw keys), but please note that this
* will increase RAM usage. * will increase RAM usage.