1 /* 2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef PS_FRONTEND_H 8 #define PS_FRONTEND_H 9 10 #include <psa/error.h> 11 #include <service/secure_storage/backend/storage_backend.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** 18 * @brief Assigns a concrete storage backend to the PS frontend and initialises 19 * the singleton PS frontend instance 20 * 21 * Provides an implementation of the PSA PS API as a storage frontend. Any 22 * suitable storage backend may be used. 23 * 24 * @param[in] backend Storage backend to use 25 * 26 * @return A status indicating the success/failure of the operation 27 */ 28 psa_status_t psa_ps_frontend_init(struct storage_backend *backend); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* PS_FRONTEND_H */ 35