Lines Matching refs:status

79     psa_status_t status;  in psa_crypto_storage_load()  local
84 status = psa_its_get_info(data_identifier, &data_identifier_info); in psa_crypto_storage_load()
85 if (status != PSA_SUCCESS) { in psa_crypto_storage_load()
86 return status; in psa_crypto_storage_load()
89 status = psa_its_get(data_identifier, 0, (uint32_t) data_size, data, &data_length); in psa_crypto_storage_load()
94 return status; in psa_crypto_storage_load()
132 psa_status_t status; in psa_crypto_storage_store() local
140 status = psa_its_set(data_identifier, (uint32_t) data_length, data, 0); in psa_crypto_storage_store()
141 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
145 status = psa_its_get_info(data_identifier, &data_identifier_info); in psa_crypto_storage_store()
146 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
151 status = PSA_ERROR_DATA_INVALID; in psa_crypto_storage_store()
156 if (status != PSA_SUCCESS) { in psa_crypto_storage_store()
163 return status; in psa_crypto_storage_store()
205 psa_status_t status; in psa_crypto_storage_get_data_length() local
209 status = psa_its_get_info(data_identifier, &data_identifier_info); in psa_crypto_storage_get_data_length()
210 if (status != PSA_SUCCESS) { in psa_crypto_storage_get_data_length()
211 return status; in psa_crypto_storage_get_data_length()
272 psa_status_t status; in psa_parse_key_data_from_storage() local
281 status = check_magic_header(storage_data); in psa_parse_key_data_from_storage()
282 if (status != PSA_SUCCESS) { in psa_parse_key_data_from_storage()
283 return status; in psa_parse_key_data_from_storage()
323 psa_status_t status; in psa_save_persistent_key() local
342 status = psa_crypto_storage_store(attr->id, in psa_save_persistent_key()
347 return status; in psa_save_persistent_key()
359 psa_status_t status = PSA_SUCCESS; in psa_load_persistent_key() local
364 status = psa_crypto_storage_get_data_length(key, &storage_data_length); in psa_load_persistent_key()
365 if (status != PSA_SUCCESS) { in psa_load_persistent_key()
366 return status; in psa_load_persistent_key()
375 status = psa_crypto_storage_load(key, loaded_data, storage_data_length); in psa_load_persistent_key()
376 if (status != PSA_SUCCESS) { in psa_load_persistent_key()
380 status = psa_parse_key_data_from_storage(loaded_data, storage_data_length, in psa_load_persistent_key()
384 if (status == PSA_SUCCESS && in psa_load_persistent_key()
386 status = PSA_ERROR_STORAGE_FAILURE; in psa_load_persistent_key()
391 return status; in psa_load_persistent_key()
407 psa_status_t status; in psa_crypto_save_transaction() local
408 status = psa_its_get_info(PSA_CRYPTO_ITS_TRANSACTION_UID, &p_info); in psa_crypto_save_transaction()
409 if (status == PSA_SUCCESS) { in psa_crypto_save_transaction()
413 } else if (status != PSA_ERROR_DOES_NOT_EXIST) { in psa_crypto_save_transaction()
414 return status; in psa_crypto_save_transaction()
424 psa_status_t status; in psa_crypto_load_transaction() local
426 status = psa_its_get(PSA_CRYPTO_ITS_TRANSACTION_UID, 0, in psa_crypto_load_transaction()
429 if (status != PSA_SUCCESS) { in psa_crypto_load_transaction()
430 return status; in psa_crypto_load_transaction()
440 psa_status_t status = psa_its_remove(PSA_CRYPTO_ITS_TRANSACTION_UID); in psa_crypto_stop_transaction() local
445 return status; in psa_crypto_stop_transaction()
460 psa_status_t status; in mbedtls_psa_storage_inject_entropy() local
463 status = psa_its_get_info(PSA_CRYPTO_ITS_RANDOM_SEED_UID, &p_info); in mbedtls_psa_storage_inject_entropy()
465 if (PSA_ERROR_DOES_NOT_EXIST == status) { /* No seed exists */ in mbedtls_psa_storage_inject_entropy()
466 status = psa_its_set(PSA_CRYPTO_ITS_RANDOM_SEED_UID, seed_size, seed, 0); in mbedtls_psa_storage_inject_entropy()
467 } else if (PSA_SUCCESS == status) { in mbedtls_psa_storage_inject_entropy()
469 status = PSA_ERROR_NOT_PERMITTED; in mbedtls_psa_storage_inject_entropy()
471 return status; in mbedtls_psa_storage_inject_entropy()