Documentation: fix some nits

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-10-04 13:46:37 +02:00
parent bdfb80bf3b
commit fe0f09e35f
3 changed files with 4 additions and 4 deletions

View File

@ -3280,7 +3280,7 @@
* #MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE.
*
* \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 or not.
* - Each key buffer's length is #MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE bytes.
*
* Requires: MBEDTLS_PSA_CRYPTO_C

View File

@ -157,9 +157,9 @@ typedef struct {
struct key_data {
#if defined(MBEDTLS_PSA_STATIC_KEY_SLOTS)
uint8_t data[MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE];
#else /* MBEDTLS_PSA_STATIC_KEY_SLOTS */
#else
uint8_t *data;
#endif /* MBEDTLS_PSA_STATIC_KEY_SLOTS */
#endif
size_t bytes;
} key;
} psa_key_slot_t;

View File

@ -491,7 +491,7 @@ uint64_t mbedtls_test_parse_binary_string(data_t *bin_string);
#endif
/* Helper macro for the PK module to check whether MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE
* is large enough to contain 4096 bits RSA key pairs. Of course this check is only
* is large enough to contain 4096-bit RSA key pairs. Of course this check is only
* necessary if PK relies on PSA (i.e. MBEDTLS_USE_PSA_CRYPTO) to store and manage
* the key. */
#if defined(MBEDTLS_USE_PSA_CRYPTO)