mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
mbedtls_config: fix descriptions for PSA static key slots
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -3069,15 +3069,17 @@
|
|||||||
/**
|
/**
|
||||||
* \def MBEDTLS_PSA_STATIC_KEY_SLOTS
|
* \def MBEDTLS_PSA_STATIC_KEY_SLOTS
|
||||||
*
|
*
|
||||||
* Statically preallocate all key slot buffers to store volatile keys in PSA
|
* Statically preallocate memory to store keys' material in PSA instead
|
||||||
* instead of allocating them dynamically when required. This helps reducing
|
* of allocating it dynamically when required. This allows builds without a
|
||||||
* heap memory usage as well as heap management code's footprint in embedded
|
* heap, if none of the enabled cryptographic implementations or other features
|
||||||
* devices.
|
* require it.
|
||||||
|
* This feature affects both volatile and persistent keys which means that
|
||||||
|
* it's not possible to persistently store a key which is larger than
|
||||||
|
* 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 slot's length is as large as the largest key type supported
|
* - Each key buffer's length is MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE bytes.
|
||||||
* in the build.
|
|
||||||
*
|
*
|
||||||
* Requires: MBEDTLS_PSA_CRYPTO_C
|
* Requires: MBEDTLS_PSA_CRYPTO_C
|
||||||
*
|
*
|
||||||
@@ -3886,17 +3888,15 @@
|
|||||||
//#define MBEDTLS_PSA_KEY_SLOT_COUNT 32
|
//#define MBEDTLS_PSA_KEY_SLOT_COUNT 32
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_PSA_STATIC_KEY_SLOTS
|
* \def MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE
|
||||||
*
|
*
|
||||||
* Optionally define the size (in bytes) of each static key slot. If not
|
* Define the size (in bytes) of each static key slot when
|
||||||
|
* 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 set to hold the maximum
|
||||||
* asymmetric PSA key enabled in the build (through PSA_WANT_xxx symbols).
|
* asymmetric PSA key 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.
|
||||||
*
|
|
||||||
* Requires: MBEDTLS_PSA_STATIC_KEY_SLOTS
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
//#define MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE 256
|
//#define MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE 256
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user