![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include "ps_utils.h"
Go to the source code of this file.
Functions | |
psa_status_t | ps_utils_check_contained_in (uint32_t superset_size, uint32_t subset_offset, uint32_t subset_size) |
Checks if a subset region is fully contained within a superset region. More... | |
psa_status_t ps_utils_check_contained_in | ( | uint32_t | superset_size, |
uint32_t | subset_offset, | ||
uint32_t | subset_size | ||
) |
Checks if a subset region is fully contained within a superset region.
[in] | superset_size | Size of superset region |
[in] | subset_offset | Offset of start of subset region from start of superset region |
[in] | subset_size | Size of subset region |
PSA_SUCCESS | The subset is contained within the superset |
PSA_ERROR_INVALID_ARGUMENT | The subset offset is greater than the size of the superset or when the subset offset is valid, but the subset offset + size is greater than the size of the superset |
Definition at line 10 of file ps_utils.c.