mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Assert that the key ID range for volatile keys is large enough
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
b6bf370159
commit
708ec09e30
@ -65,6 +65,10 @@ typedef struct {
|
|||||||
|
|
||||||
static psa_global_data_t global_data;
|
static psa_global_data_t global_data;
|
||||||
|
|
||||||
|
MBEDTLS_STATIC_ASSERT(ARRAY_LENGTH(global_data.key_slots) <=
|
||||||
|
PSA_KEY_ID_VOLATILE_MAX - PSA_KEY_ID_VOLATILE_MIN + 1,
|
||||||
|
"The volatile key range is larger than the key slot array");
|
||||||
|
|
||||||
static uint8_t psa_get_key_slots_initialized(void)
|
static uint8_t psa_get_key_slots_initialized(void)
|
||||||
{
|
{
|
||||||
uint8_t initialized;
|
uint8_t initialized;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user