|
Mbed TLS v4.1.1
|
Macros | |
| #define | MBEDTLS_PSA_KEY_ID_BUILTIN_MIN ((psa_key_id_t) 0x7fff0000) |
| #define | MBEDTLS_PSA_KEY_ID_BUILTIN_MAX ((psa_key_id_t) 0x7fffefff) |
Typedefs | |
| typedef uint64_t | psa_drv_slot_number_t |
Functions | |
| static int | psa_key_id_is_builtin (psa_key_id_t key_id) |
| #define MBEDTLS_PSA_KEY_ID_BUILTIN_MAX ((psa_key_id_t) 0x7fffefff) |
The maximum value for a key identifier that is built into the implementation.
See MBEDTLS_PSA_KEY_ID_BUILTIN_MIN for more information.
Definition at line 483 of file crypto_extra.h.
Referenced by psa_key_id_is_builtin().
| #define MBEDTLS_PSA_KEY_ID_BUILTIN_MIN ((psa_key_id_t) 0x7fff0000) |
The minimum value for a key identifier that is built into the implementation.
The range of key identifiers from MBEDTLS_PSA_KEY_ID_BUILTIN_MIN to MBEDTLS_PSA_KEY_ID_BUILTIN_MAX within the range from PSA_KEY_ID_VENDOR_MIN and PSA_KEY_ID_VENDOR_MAX and must not intersect with any other set of implementation-chosen key identifiers.
This value is part of the library's API since changing it would invalidate the values of built-in key identifiers in applications.
Definition at line 476 of file crypto_extra.h.
Referenced by psa_key_id_is_builtin().
| typedef uint64_t psa_drv_slot_number_t |
A slot number identifying a key in a driver.
Values of this type are used to identify built-in keys.
Definition at line 489 of file crypto_extra.h.
|
inlinestatic |
Test whether a key identifier belongs to the builtin key range.
| key_id | Key identifier to test. |
| 1 | The key identifier is a builtin key identifier. |
| 0 | The key identifier is not a builtin key identifier. |
Definition at line 500 of file crypto_extra.h.
References MBEDTLS_PSA_KEY_ID_BUILTIN_MAX, and MBEDTLS_PSA_KEY_ID_BUILTIN_MIN.