Searched refs:storage_format (Results 1 – 1 of 1) sorted by relevance
/mbedtls-3.6.0/library/ |
D | psa_crypto_storage.c | 241 psa_persistent_key_storage_format *storage_format = in psa_format_key_data_for_storage() local 244 memcpy(storage_format->magic, PSA_KEY_STORAGE_MAGIC_HEADER, in psa_format_key_data_for_storage() 246 MBEDTLS_PUT_UINT32_LE(0, storage_format->version, 0); in psa_format_key_data_for_storage() 247 MBEDTLS_PUT_UINT32_LE(attr->lifetime, storage_format->lifetime, 0); in psa_format_key_data_for_storage() 248 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->type, storage_format->type, 0); in psa_format_key_data_for_storage() 249 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->bits, storage_format->bits, 0); in psa_format_key_data_for_storage() 250 MBEDTLS_PUT_UINT32_LE(attr->policy.usage, storage_format->policy, 0); in psa_format_key_data_for_storage() 251 MBEDTLS_PUT_UINT32_LE(attr->policy.alg, storage_format->policy, sizeof(uint32_t)); in psa_format_key_data_for_storage() 252 MBEDTLS_PUT_UINT32_LE(attr->policy.alg2, storage_format->policy, 2 * sizeof(uint32_t)); in psa_format_key_data_for_storage() 253 MBEDTLS_PUT_UINT32_LE(data_length, storage_format->data_len, 0); in psa_format_key_data_for_storage() [all …]
|