mbedtls/include/psa
Gilles Peskine 5b229a06f4 Support encoding an owner in key file IDs
Differentiate between _key identifiers_, which are always `uint32_t`,
and _key file identifiers_, which are platform-dependent. Normally,
the two are the same.

In `psa/crypto_platform.h`, define `psa_app_key_id_t` (which is always
32 bits, the standard key identifier type) and
`psa_key_file_id_t` (which will be different in some service builds).
A subsequent commit will introduce a platform where the two are different.

It would make sense for the function declarations in `psa/crypto.h` to
use `psa_key_file_id_t`. However this file is currently part of the
PSA Crypto API specification, so it must stick to the standard type
`psa_key_id_t`. Hence, as long as the specification and Mbed Crypto
are not separate, use the implementation-specific file
`psa/crypto_platform.h` to define `psa_key_id_t` as `psa_key_file_id_t`.

In the library, systematically use `psa_key_file_id_t`.

    perl -i -pe 's/psa_key_id_t/psa_key_file_id_t/g' library/*.[hc]
2019-02-20 12:52:07 +01:00
..
crypto.h Replace PSA error code definitions with the ones defined in PSA spec 2019-02-18 13:53:13 +02:00
crypto_accel_driver.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_driver_common.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_entropy_driver.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_extra.h Replace ITS specific types with more generic PSA storage types 2019-02-18 13:56:26 +02:00
crypto_platform.h Support encoding an owner in key file IDs 2019-02-20 12:52:07 +01:00
crypto_se_driver.h Replace PSA error code definitions with the ones defined in PSA spec 2019-02-18 13:53:13 +02:00
crypto_sizes.h psa: Rename PSA_HASH_FINAL_SIZE to PSA_HASH_SIZE 2019-02-07 12:19:59 +00:00
crypto_struct.h psa: Add initializers for cipher operation objects 2019-01-08 14:28:04 +00:00
crypto_types.h Replace PSA error code definitions with the ones defined in PSA spec 2019-02-18 13:53:13 +02:00
crypto_values.h Replace PSA error code definitions with the ones defined in PSA spec 2019-02-18 13:53:13 +02:00