| /* |
| * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| * |
| * SPDX-License-Identifier: BSD-3-Clause |
| */ |
| |
| #include "psa/crypto_types.h" |
| #include "psa/initial_attestation.h" |
| #include "psa/internal_trusted_storage.h" |
| #include "psa/protected_storage.h" |
| |
| #ifndef LIBPSA_H |
| #define LIBPSA_H |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| /* |
| * The functions may be exported as a public interface to |
| * a shared library. |
| */ |
| #ifdef EXPORT_PUBLIC_INTERFACE_LIBPSA |
| #define LIBPSA_EXPORTED __attribute__((__visibility__("default"))) |
| #else |
| #define LIBPSA_EXPORTED |
| #endif |
| |
| LIBPSA_EXPORTED psa_status_t libpsa_init_crypto_context(const char *service_name); |
| LIBPSA_EXPORTED void libpsa_deinit_crypto_context(void); |
| |
| LIBPSA_EXPORTED psa_status_t libpsa_init_attestation_context(const char *service_name); |
| LIBPSA_EXPORTED void libpsa_deinit_attestation_context(void); |
| |
| LIBPSA_EXPORTED psa_status_t libpsa_init_its_context(const char *service_name); |
| LIBPSA_EXPORTED void libpsa_deinit_its_context(void); |
| |
| LIBPSA_EXPORTED psa_status_t libpsa_init_ps_context(const char *service_name); |
| LIBPSA_EXPORTED void libpsa_deinit_ps_context(void); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif /* LIBPSA_H */ |