mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 02:55:45 +01:00
psa: Rename pss_key_owner_id_t to mbedtls_key_owner_id_t
Rename psa_key_owner_id_t to mbedtls_key_owner_id_t to highlight that this is a Mbed TLS specific type and not a type defined in the PSA Cryptography API specification. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
fa7d7af55d
commit
72f65fc6e9
@ -1150,7 +1150,7 @@
|
|||||||
*
|
*
|
||||||
* This is only meaningful when building the library as part of a
|
* This is only meaningful when building the library as part of a
|
||||||
* multi-client service. When you activate this option, you must provide
|
* multi-client service. When you activate this option, you must provide
|
||||||
* an implementation of the type psa_key_owner_id_t and a translation
|
* an implementation of the type mbedtls_key_owner_id_t and a translation
|
||||||
* from psa_key_file_id_t to file name in all the storage backends that
|
* from psa_key_file_id_t to file name in all the storage backends that
|
||||||
* you wish to support.
|
* you wish to support.
|
||||||
*
|
*
|
||||||
|
@ -1264,7 +1264,7 @@
|
|||||||
*
|
*
|
||||||
* This is only meaningful when building the library as part of a
|
* This is only meaningful when building the library as part of a
|
||||||
* multi-client service. When you activate this option, you must provide
|
* multi-client service. When you activate this option, you must provide
|
||||||
* an implementation of the type psa_key_owner_id_t and a translation
|
* an implementation of the type mbedtls_key_owner_id_t and a translation
|
||||||
* from psa_key_file_id_t to file name in all the storage backends that
|
* from psa_key_file_id_t to file name in all the storage backends that
|
||||||
* you wish to support.
|
* you wish to support.
|
||||||
*
|
*
|
||||||
|
@ -52,7 +52,7 @@ typedef uint16_t psa_key_handle_t;
|
|||||||
#if defined(PSA_CRYPTO_SECURE)
|
#if defined(PSA_CRYPTO_SECURE)
|
||||||
/* Building for the PSA Crypto service on a PSA platform. */
|
/* Building for the PSA Crypto service on a PSA platform. */
|
||||||
/* A key owner is a PSA partition identifier. */
|
/* A key owner is a PSA partition identifier. */
|
||||||
typedef int32_t psa_key_owner_id_t;
|
typedef int32_t mbedtls_key_owner_id_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER */
|
#endif /* MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER */
|
||||||
|
@ -262,7 +262,7 @@ static inline psa_key_file_id_t psa_key_file_id_make(
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
psa_key_id_t key_id;
|
psa_key_id_t key_id;
|
||||||
psa_key_owner_id_t owner;
|
mbedtls_key_owner_id_t owner;
|
||||||
} psa_key_file_id_t;
|
} psa_key_file_id_t;
|
||||||
|
|
||||||
#define PSA_KEY_ID_INIT {0, 0}
|
#define PSA_KEY_ID_INIT {0, 0}
|
||||||
@ -274,7 +274,7 @@ typedef struct
|
|||||||
* \param key_id Identifier of the key.
|
* \param key_id Identifier of the key.
|
||||||
*/
|
*/
|
||||||
static inline psa_key_file_id_t psa_key_file_id_make(
|
static inline psa_key_file_id_t psa_key_file_id_make(
|
||||||
psa_key_owner_id_t owner_id, psa_key_id_t key_id )
|
mbedtls_key_owner_id_t owner_id, psa_key_id_t key_id )
|
||||||
{
|
{
|
||||||
return( (psa_key_file_id_t){ .key_id = key_id,
|
return( (psa_key_file_id_t){ .key_id = key_id,
|
||||||
.owner = owner_id } );
|
.owner = owner_id } );
|
||||||
|
Loading…
Reference in New Issue
Block a user