mbedtls/include/psa
Ronald Cron 27238fcbd8 psa: Use psa_key_file_id_t as the key id type
The purpose of this commit and the following is for
psa_key_id_t to always be as defined by the PSA
Cryptography API specification.

Currently psa_key_id_t departs from its specification
definition when MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER
configuration flag is set. In that configuration, it is set
to be equal to psa_key_file_id_t which in that configuration
encodes an owner identifier along the key identifier.

Type psa_key_file_id_t was meant to be the key identifier type
used throughout the library code. If
MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER is set it
includes both a key and owner identifier, otherwise it is
equal to psa_key_id_t.

It has not been the key identifier type throughout the
library so far because when the PSA Cryptography
specification was developped the library Doxygen
documentation was used to generate the PSA Cryptography API
specification thus the need to use psa_key_id_t and not
psa_key_file_id_t.

As this constraint does not hold anymore, move
to psa_key_file_id_t as the key identifier type throughout
the library code.

By the way, this commit updates the key identifier
initialization in the tests to be compatible with a
composit key identifier. A psa_key_id_make()
inline function is introduced to initialize key
identifiers (composit ot not) at runtime.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2020-09-02 14:27:07 +02:00
..
crypto.h psa: Use psa_key_file_id_t as the key id type 2020-09-02 14:27:07 +02:00
crypto_accel_driver.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_compat.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_driver_common.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_entropy_driver.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_extra.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_platform.h psa: Move psa_key_file_id_t definition to crypto_types.h 2020-09-02 14:27:07 +02:00
crypto_se_driver.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_sizes.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
crypto_struct.h psa: Use psa_key_file_id_t as the key id type 2020-09-02 14:27:07 +02:00
crypto_types.h psa: Use psa_key_file_id_t as the key id type 2020-09-02 14:27:07 +02:00
crypto_values.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00