TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ps_encrypted_object.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __PS_ENCRYPTED_OBJECT_H__
9 #define __PS_ENCRYPTED_OBJECT_H__
10 
11 #include <stdint.h>
12 #include "ps_object_defs.h"
13 #include "psa/protected_storage.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
28  struct ps_object_t *obj);
29 
45  struct ps_object_t *obj);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif /* __PS_ENCRYPTED_OBJECT_H__ */
psa_status_t ps_encrypted_object_read(uint32_t fid, struct ps_object_t *obj)
Reads object referenced by the object File ID.
psa_status_t ps_encrypted_object_write(uint32_t fid, struct ps_object_t *obj)
Creates and writes a new encrypted object based on the given ps_object_t structure data...
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43
The object to be written to the file system below. Made up of the object header and the object data...