mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 02:43:26 +00:00
Start subsystem IDs at 1 instead of 0
Catch potential invalid calls to init. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
78279962d6
commit
0db6a9033a
@ -93,8 +93,10 @@ static int key_type_is_raw_bytes(psa_key_type_t type)
|
||||
#define RNG_INITIALIZED 1
|
||||
#define RNG_SEEDED 2
|
||||
|
||||
/* IDs for PSA crypto subsystems. Starts at 1 to catch potential uninitialized
|
||||
* variables as arguments. */
|
||||
typedef enum {
|
||||
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS = 0,
|
||||
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS = 1,
|
||||
PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS,
|
||||
PSA_CRYPTO_SUBSYSTEM_RNG,
|
||||
PSA_CRYPTO_SUBSYSTEM_TRANSACTION,
|
||||
|
Loading…
x
Reference in New Issue
Block a user