commit | cb62a8b04c16d189155a6b799d9e92d66ba369e1 | [log] [tgz] |
---|---|---|
author | Balint Dobszay <balint.dobszay@arm.com> | Tue Jan 23 14:39:40 2024 +0100 |
committer | Balint Dobszay <balint.dobszay@arm.com> | Thu Jan 25 17:32:01 2024 +0100 |
tree | 08ddabc498e1381fc40fedfa50c6404da5faeebf | |
parent | 8a86a00a64492d1aab86950d664d09addbf13c9d [diff] |
Replace PSA_KEY_ID_INIT macro Replace the non-standard PSA_KEY_ID_INIT macro with PSA_KEY_ID_NULL which is defined by the PSA Crypto API for the same purpose. Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I2fbf48e0a18e79535c95e79272ef3aa1a3cabb1f
diff --git a/components/service/crypto/include/psa/crypto_types.h b/components/service/crypto/include/psa/crypto_types.h index 0644763..82ecf55 100644 --- a/components/service/crypto/include/psa/crypto_types.h +++ b/components/service/crypto/include/psa/crypto_types.h
@@ -217,7 +217,6 @@ * - Key identifiers outside these ranges are reserved for future use. */ typedef uint32_t psa_key_id_t; -#define PSA_KEY_ID_INIT 0 /** Key handle for open keys *
diff --git a/components/service/crypto/include/psa/crypto_values.h b/components/service/crypto/include/psa/crypto_values.h index 9fbea40..df3ac54 100644 --- a/components/service/crypto/include/psa/crypto_values.h +++ b/components/service/crypto/include/psa/crypto_values.h
@@ -1769,6 +1769,9 @@ #define PSA_KEY_LOCATION_VENDOR_FLAG ((psa_key_location_t)0x800000) +/** The null key identifier. + */ +#define PSA_KEY_ID_NULL ((psa_key_id_t)0) /** The minimum value for a key identifier chosen by the application. */ #define PSA_KEY_ID_USER_MIN ((psa_key_id_t)0x00000001)