TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public functions

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)
 

Detailed Description

Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t audit_core_get_info ( psa_invec  in_vec[],
size_t  in_len,
psa_outvec  out_vec[],
size_t  out_len 
)

Definition at line 560 of file audit_core.c.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t audit_core_init ( void  )

Initializes the Audit logging service during the TFM boot up process.

Returns
Returns PSA_SUCCESS if init has been completed, otherwise error as specified in psa_status_t

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]handleHandle given as input
[out]indexOptionally, 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.
Returns
Return values as described in psa_status_t

Definition at line 86 of file crypto_key.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[out]indexIndex of the local storage to use
Returns
Return values as described in psa_status_t

Definition at line 118 of file crypto_key.c.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t tfm_crypto_export_key ( psa_invec  in_vec[],
size_t  in_len,
psa_outvec  out_vec[],
size_t  out_len 
)

Definition at line 451 of file crypto_key.c.

Here is the caller graph for this function:

psa_status_t tfm_crypto_export_public_key ( psa_invec  in_vec[],
size_t  in_len,
psa_outvec  out_vec[],
size_t  out_len 
)

Definition at line 475 of file crypto_key.c.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t tfm_crypto_init_alloc ( void  )

Initialise the Alloc module.

Returns
Return values as described in psa_status_t

Definition at line 87 of file crypto_alloc.c.

Here is the call graph for this function:

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.

Parameters
[in]client_key_attrClient key attributes
[in]client_idPartition ID of the calling client
[out]key_attributesKey attributes
Returns
Return values as described in psa_status_t

Definition at line 37 of file crypto_key.c.

Here is the caller graph for this function:

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.

Parameters
[in]key_attributesKey attributes
[out]client_key_attrClient key attributes
Returns
Return values as described in psa_status_t

Definition at line 62 of file crypto_key.c.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]typeType of the operation context to allocate
[out]handlePointer to hold the allocated handle
[out]ctxDouble pointer to the corresponding context
Returns
Return values as described in psa_status_t

Definition at line 94 of file crypto_alloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]typeType of the operation context to look up
[in]handleHandle of the context to lookup
[out]ctxDouble pointer to the corresponding context
Returns
Return values as described in psa_status_t

Definition at line 159 of file crypto_alloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

psa_status_t tfm_crypto_operation_release ( uint32_t *  handle)

Release an operation context in the backend.

Parameters
[in]handlePointer to the handle of the context to release
Returns
Return values as described in psa_status_t

Definition at line 132 of file crypto_alloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]indexIndex of the local storage to use
[in]key_handleCorresponding key handle to associate
Returns
Return values as described in psa_status_t

Definition at line 136 of file crypto_key.c.

Here is the call graph for this function:

Here is the caller graph for this function: