Skip to content

Commit

Permalink
Fix inverted assertion message
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Aug 8, 2024
1 parent 3a51fdc commit d0ba2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/psa_crypto_slot_management.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ 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");
"The key slot array is larger than the volatile key ID range");

int psa_is_valid_key_id(mbedtls_svc_key_id_t key, int vendor_ok)
{
Expand Down

0 comments on commit d0ba2b0

Please sign in to comment.