TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
its_utils.c File Reference
#include "its_utils.h"
Include dependency graph for its_utils.c:

Go to the source code of this file.

Functions

psa_status_t its_utils_check_contained_in (size_t superset_size, size_t subset_offset, size_t subset_size)
 Checks if a subset region is fully contained within a superset region. More...
 
psa_status_t its_utils_validate_fid (const uint8_t *fid)
 Validates file ID. More...
 

Function Documentation

psa_status_t its_utils_check_contained_in ( size_t  superset_size,
size_t  subset_offset,
size_t  subset_size 
)

Checks if a subset region is fully contained within a superset region.

Parameters
[in]superset_sizeSize of superset region
[in]subset_offsetOffset of start of subset region from start of superset region
[in]subset_sizeSize of subset region
Returns
Returns error code as specified in psa_status_t
Return values
PSA_SUCCESSThe subset is contained within the superset
PSA_ERROR_INVALID_ARGUMENTOtherwise

Definition at line 10 of file its_utils.c.

Here is the caller graph for this function:

psa_status_t its_utils_validate_fid ( const uint8_t *  fid)

Validates file ID.

Parameters
[in]fidFile ID
Returns
Returns error code as specified in psa_status_t

Definition at line 30 of file its_utils.c.