mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 22:45:22 +00:00
Fix key owner identifier documentation
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
5eba579c6c
commit
9a2511e78f
|
@ -1262,11 +1262,8 @@
|
||||||
*
|
*
|
||||||
* Enable key identifiers that encode a key owner identifier.
|
* Enable key identifiers that encode a key owner identifier.
|
||||||
*
|
*
|
||||||
* This is only meaningful when building the library as part of a
|
* The owner of a key is identified by a value of type ::mbedtls_key_owner_id_t
|
||||||
* multi-client service. When you activate this option, you must provide an
|
* which is currently hard-coded to be int32_t.
|
||||||
* implementation of the type mbedtls_key_owner_id_t and a translation from
|
|
||||||
* mbedtls_svc_key_id_t to file name in all the storage backends that you
|
|
||||||
* you wish to support.
|
|
||||||
*
|
*
|
||||||
* Note that this option is meant for internal use only and may be removed
|
* Note that this option is meant for internal use only and may be removed
|
||||||
* without notice.
|
* without notice.
|
||||||
|
|
|
@ -54,8 +54,15 @@ typedef uint16_t psa_key_handle_t;
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
|
#if defined(MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
|
||||||
|
|
||||||
/* 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
|
||||||
/* A key owner is a PSA partition identifier. */
|
* partition identifier.
|
||||||
|
*
|
||||||
|
* The function psa_its_identifier_of_slot() in psa_crypto_storage.c that
|
||||||
|
* translates a key identifier to a key storage file name assumes that
|
||||||
|
* mbedtls_key_owner_id_t is an 32 bits integer. This function thus needs
|
||||||
|
* reworking if mbedtls_key_owner_id_t is not defined as a 32 bits integer
|
||||||
|
* here anymore.
|
||||||
|
*/
|
||||||
typedef int32_t mbedtls_key_owner_id_t;
|
typedef int32_t mbedtls_key_owner_id_t;
|
||||||
|
|
||||||
/** Compare two key owner identifiers.
|
/** Compare two key owner identifiers.
|
||||||
|
|
Loading…
Reference in a new issue