Lines Matching refs:attr
238 const psa_key_attributes_t *attr,
247 MBEDTLS_PUT_UINT32_LE(attr->lifetime, storage_format->lifetime, 0);
248 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->type, storage_format->type, 0);
249 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->bits, storage_format->bits, 0);
250 MBEDTLS_PUT_UINT32_LE(attr->policy.usage, storage_format->policy, 0);
251 MBEDTLS_PUT_UINT32_LE(attr->policy.alg, storage_format->policy, sizeof(uint32_t));
252 MBEDTLS_PUT_UINT32_LE(attr->policy.alg2, storage_format->policy, 2 * sizeof(uint32_t));
270 psa_key_attributes_t *attr)
307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0);
308 attr->type = MBEDTLS_GET_UINT16_LE(storage_format->type, 0);
309 attr->bits = MBEDTLS_GET_UINT16_LE(storage_format->bits, 0);
310 attr->policy.usage = MBEDTLS_GET_UINT32_LE(storage_format->policy, 0);
311 attr->policy.alg = MBEDTLS_GET_UINT32_LE(storage_format->policy, sizeof(uint32_t));
312 attr->policy.alg2 = MBEDTLS_GET_UINT32_LE(storage_format->policy, 2 * sizeof(uint32_t));
317 psa_status_t psa_save_persistent_key(const psa_key_attributes_t *attr,
340 psa_format_key_data_for_storage(data, data_length, attr, storage_data);
342 status = psa_crypto_storage_store(attr->id,
355 psa_status_t psa_load_persistent_key(psa_key_attributes_t *attr,
362 mbedtls_svc_key_id_t key = attr->id;
381 data, data_length, attr);