Mbed OS Reference
Loading...
Searching...
No Matches
pits_impl.h
1/* Copyright (c) 2018 ARM Limited
2 *
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef __PITS_IMPL_H__
19#define __PITS_IMPL_H__
20
21#include "psa/error.h"
22#include "psa/storage_common.h"
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
29psa_status_t psa_its_set_impl(int32_t pid, psa_storage_uid_t uid, size_t data_length, const void *p_data, psa_storage_create_flags_t create_flags);
30psa_status_t psa_its_get_impl(int32_t pid, psa_storage_uid_t uid, size_t data_offset, size_t data_length, void *p_data, size_t *p_data_length);
31psa_status_t psa_its_get_info_impl(int32_t pid, psa_storage_uid_t uid, struct psa_storage_info_t *p_info);
32psa_status_t psa_its_remove_impl(int32_t pid, psa_storage_uid_t uid);
33psa_status_t psa_its_reset_impl();
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif // __PITS_IMPL_H__
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:55
This file includes common definitions for PSA storage.
uint32_t psa_storage_create_flags_t
Flags used when creating a data entry.
uint64_t psa_storage_uid_t
A type for UIDs used for identifying data.
A container for metadata associated with a specific uid.