TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_attest.c File Reference
#include "tfm_api.h"
#include "tfm_secure_api.h"
#include "service_api.h"
#include "attest.h"
#include "psa/initial_attestation.h"
#include "tfm_boot_status.h"
Include dependency graph for tfm_attest.c:

Go to the source code of this file.

Functions

enum psa_attest_err_t attest_get_caller_client_id (int32_t *caller_id)
 Get the ID of the caller thread. More...
 
enum psa_attest_err_t attest_get_boot_data (uint8_t major_type, struct tfm_boot_data *boot_data, uint32_t len)
 Copy the boot data (coming from boot loader) from shared memory area to service memory area. More...
 

Function Documentation

enum psa_attest_err_t attest_get_boot_data ( uint8_t  major_type,
struct tfm_boot_data boot_data,
uint32_t  len 
)

Copy the boot data (coming from boot loader) from shared memory area to service memory area.

Parameters
[in]major_typeMajor type of TLV entries to copy
[out]boot_dataPointer to the buffer to store the boot data
[in]lenSize of the buffer to store the boot data
Returns
Returns error code as specified in psa_attest_err_t

Definition at line 38 of file tfm_attest.c.

Here is the call graph for this function:

Here is the caller graph for this function:

enum psa_attest_err_t attest_get_caller_client_id ( int32_t *  caller_id)

Get the ID of the caller thread.

Parameters
[out]caller_idPointer where to store caller ID
Returns
Returns error code as specified in psa_attest_err_t

Definition at line 20 of file tfm_attest.c.

Here is the call graph for this function: