![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
Functions | |
psa_status_t | audit_core_init (void) |
Initializes the Audit logging service during the TFM boot up process. More... | |
psa_status_t | audit_core_delete_record (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | audit_core_get_info (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | audit_core_get_record_info (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | audit_core_add_record (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | audit_core_retrieve_record (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_init_alloc (void) |
Initialise the Alloc module. More... | |
psa_status_t | tfm_crypto_operation_alloc (enum tfm_crypto_operation_type type, uint32_t *handle, void **ctx) |
Allocate an operation context in the backend. More... | |
psa_status_t | tfm_crypto_operation_release (uint32_t *handle) |
Release an operation context in the backend. More... | |
psa_status_t | tfm_crypto_operation_lookup (enum tfm_crypto_operation_type type, uint32_t handle, void **ctx) |
Look up an operation context in the backend for the corresponding frontend operation. More... | |
psa_status_t | tfm_crypto_key_attributes_from_client (const struct psa_client_key_attributes_s *client_key_attr, int32_t client_id, psa_key_attributes_t *key_attributes) |
Gets key attributes from client key attributes. More... | |
psa_status_t | tfm_crypto_key_attributes_to_client (const psa_key_attributes_t *key_attributes, struct psa_client_key_attributes_s *client_key_attr) |
Converts key attributes to client key attributes. More... | |
psa_status_t | tfm_crypto_check_handle_owner (psa_key_handle_t handle, uint32_t *index) |
Checks that the requested handle belongs to the requesting partition. More... | |
psa_status_t | tfm_crypto_check_key_storage (uint32_t *index) |
Checks that there is enough local storage in RAM to keep another key, and returns the index of the storage to use. More... | |
psa_status_t | tfm_crypto_set_key_storage (uint32_t index, psa_key_handle_t key_handle) |
Sets the index of the local storage in use with a key requested by the calling partition, and stores the corresponding key_handle. More... | |
psa_status_t | tfm_crypto_set_key_domain_parameters (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_get_key_domain_parameters (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_import_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_open_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_close_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_destroy_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_get_key_attributes (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_reset_key_attributes (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_export_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_export_public_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_copy_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t | tfm_crypto_generate_key (psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len) |
psa_status_t audit_core_add_record | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 623 of file audit_core.c.
psa_status_t audit_core_delete_record | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 491 of file audit_core.c.
psa_status_t audit_core_get_info | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
psa_status_t audit_core_get_record_info | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 586 of file audit_core.c.
psa_status_t audit_core_init | ( | void | ) |
Initializes the Audit logging service during the TFM boot up process.
Definition at line 465 of file audit_core.c.
psa_status_t audit_core_retrieve_record | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 730 of file audit_core.c.
psa_status_t tfm_crypto_check_handle_owner | ( | psa_key_handle_t | handle, |
uint32_t * | index | ||
) |
Checks that the requested handle belongs to the requesting partition.
[in] | handle | Handle given as input |
[out] | index | Optionally, pointer to hold the internal index corresponding to the input handle. Valid only on PSA_SUCCESS, it's returned only if the input parameter is not NULL. |
Definition at line 86 of file crypto_key.c.
psa_status_t tfm_crypto_check_key_storage | ( | uint32_t * | index | ) |
Checks that there is enough local storage in RAM to keep another key, and returns the index of the storage to use.
[out] | index | Index of the local storage to use |
Definition at line 118 of file crypto_key.c.
psa_status_t tfm_crypto_close_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 299 of file crypto_key.c.
psa_status_t tfm_crypto_copy_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 499 of file crypto_key.c.
psa_status_t tfm_crypto_destroy_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 336 of file crypto_key.c.
psa_status_t tfm_crypto_export_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
psa_status_t tfm_crypto_export_public_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
psa_status_t tfm_crypto_generate_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 561 of file crypto_key.c.
psa_status_t tfm_crypto_get_key_attributes | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 373 of file crypto_key.c.
psa_status_t tfm_crypto_get_key_domain_parameters | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 171 of file crypto_key.c.
psa_status_t tfm_crypto_import_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 184 of file crypto_key.c.
psa_status_t tfm_crypto_init_alloc | ( | void | ) |
Initialise the Alloc module.
Definition at line 87 of file crypto_alloc.c.
psa_status_t tfm_crypto_key_attributes_from_client | ( | const struct psa_client_key_attributes_s * | client_key_attr, |
int32_t | client_id, | ||
psa_key_attributes_t * | key_attributes | ||
) |
Gets key attributes from client key attributes.
[in] | client_key_attr | Client key attributes |
[in] | client_id | Partition ID of the calling client |
[out] | key_attributes | Key attributes |
Definition at line 37 of file crypto_key.c.
psa_status_t tfm_crypto_key_attributes_to_client | ( | const psa_key_attributes_t * | key_attributes, |
struct psa_client_key_attributes_s * | client_key_attr | ||
) |
Converts key attributes to client key attributes.
[in] | key_attributes | Key attributes |
[out] | client_key_attr | Client key attributes |
Definition at line 62 of file crypto_key.c.
psa_status_t tfm_crypto_open_key | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 245 of file crypto_key.c.
psa_status_t tfm_crypto_operation_alloc | ( | enum tfm_crypto_operation_type | type, |
uint32_t * | handle, | ||
void ** | ctx | ||
) |
Allocate an operation context in the backend.
[in] | type | Type of the operation context to allocate |
[out] | handle | Pointer to hold the allocated handle |
[out] | ctx | Double pointer to the corresponding context |
Definition at line 94 of file crypto_alloc.c.
psa_status_t tfm_crypto_operation_lookup | ( | enum tfm_crypto_operation_type | type, |
uint32_t | handle, | ||
void ** | ctx | ||
) |
Look up an operation context in the backend for the corresponding frontend operation.
[in] | type | Type of the operation context to look up |
[in] | handle | Handle of the context to lookup |
[out] | ctx | Double pointer to the corresponding context |
Definition at line 159 of file crypto_alloc.c.
psa_status_t tfm_crypto_operation_release | ( | uint32_t * | handle | ) |
Release an operation context in the backend.
[in] | handle | Pointer to the handle of the context to release |
Definition at line 132 of file crypto_alloc.c.
psa_status_t tfm_crypto_reset_key_attributes | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 411 of file crypto_key.c.
psa_status_t tfm_crypto_set_key_domain_parameters | ( | psa_invec | in_vec[], |
size_t | in_len, | ||
psa_outvec | out_vec[], | ||
size_t | out_len | ||
) |
Definition at line 158 of file crypto_key.c.
psa_status_t tfm_crypto_set_key_storage | ( | uint32_t | index, |
psa_key_handle_t | key_handle | ||
) |
Sets the index of the local storage in use with a key requested by the calling partition, and stores the corresponding key_handle.
[in] | index | Index of the local storage to use |
[in] | key_handle | Corresponding key handle to associate |
Definition at line 136 of file crypto_key.c.