TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
attest.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 __ATTEST_H__
9 #define __ATTEST_H__
10 
12 #include "psa/client.h"
13 #include "tfm_boot_status.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
44 };
45 
57 attest_get_boot_data(uint8_t major_type,
58  struct tfm_boot_data *boot_data,
59  uint32_t len);
60 
69 attest_get_caller_client_id(int32_t *caller_id);
70 
79 
93 initial_attest_get_token(const psa_invec *in_vec, uint32_t num_invec,
94  psa_outvec *out_vec, uint32_t num_outvec);
95 
109 initial_attest_get_token_size(const psa_invec *in_vec, uint32_t num_invec,
110  psa_outvec *out_vec, uint32_t num_outvec);
111 
125 initial_attest_get_public_key(const psa_invec *in_vec, uint32_t num_invec,
126  psa_outvec *out_vec, uint32_t num_outvec);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* __ATTEST_H__ */
psa_status_t initial_attest_get_token_size(const psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
Get the size of the initial attestation token.
Definition: attest_core.c:869
psa_attest_err_t
Initial attestation service error types.
Definition: attest.h:25
psa_status_t initial_attest_get_public_key(const psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
Get the initial attestation public key.
Definition: attest_core.c:922
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...
Definition: tfm_attest.c:38
psa_status_t initial_attest_get_token(const psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
Get initial attestation token.
Definition: attest_core.c:833
Store the data for the runtime SW.
enum psa_attest_err_t attest_get_caller_client_id(int32_t *caller_id)
Get the ID of the caller thread.
Definition: tfm_attest.c:20
psa_status_t attest_init(void)
Initialise the initial attestation service during the TF-M boot up process.
Definition: attest_core.c:99
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43