Home
last modified time | relevance | path

Searched refs:storage_format (Results 1 – 1 of 1) sorted by relevance

/mbedtls-3.4.0/library/
Dpsa_crypto_storage.c249 psa_persistent_key_storage_format *storage_format = in psa_format_key_data_for_storage() local
252 …memcpy( storage_format->magic, PSA_KEY_STORAGE_MAGIC_HEADER, PSA_KEY_STORAGE_MAGIC_HEADER_LENGTH ); in psa_format_key_data_for_storage()
253 MBEDTLS_PUT_UINT32_LE( 0, storage_format->version, 0 ); in psa_format_key_data_for_storage()
254 MBEDTLS_PUT_UINT32_LE( attr->lifetime, storage_format->lifetime, 0 ); in psa_format_key_data_for_storage()
255 MBEDTLS_PUT_UINT16_LE( (uint16_t) attr->type, storage_format->type, 0 ); in psa_format_key_data_for_storage()
256 MBEDTLS_PUT_UINT16_LE( (uint16_t) attr->bits, storage_format->bits, 0 ); in psa_format_key_data_for_storage()
257 MBEDTLS_PUT_UINT32_LE( attr->policy.usage, storage_format->policy, 0 ); in psa_format_key_data_for_storage()
258 MBEDTLS_PUT_UINT32_LE( attr->policy.alg, storage_format->policy, sizeof( uint32_t ) ); in psa_format_key_data_for_storage()
259 MBEDTLS_PUT_UINT32_LE( attr->policy.alg2, storage_format->policy, 2 * sizeof( uint32_t ) ); in psa_format_key_data_for_storage()
260 MBEDTLS_PUT_UINT32_LE( data_length, storage_format->data_len, 0 ); in psa_format_key_data_for_storage()
[all …]