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 File Reference
#include <stdint.h>
#include "ps_object_defs.h"
#include "psa/protected_storage.h"
Include dependency graph for ps_encrypted_object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

psa_status_t ps_encrypted_object_read (uint32_t fid, struct ps_object_t *obj)
 Reads object referenced by the object File ID. More...
 
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. More...
 

Function Documentation

psa_status_t ps_encrypted_object_read ( uint32_t  fid,
struct ps_object_t obj 
)

Reads object referenced by the object File ID.

Parameters
[in]fidFile ID
[out]objPointer to the object structure to fill in
Returns
Returns error code specified in psa_status_t

Definition at line 135 of file ps_encrypted_object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fidFile ID
[in,out]objPointer to the object structure to write.

Note: The function will use obj to store the encrypted data before write it into the flash to reduce the memory requirements and the number of internal copies. So, this object will contain the encrypted object stored in the flash.

Returns
Returns error code specified in psa_status_t

Definition at line 162 of file ps_encrypted_object.c.

Here is the call graph for this function:

Here is the caller graph for this function: