![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
Go to the source code of this file.
Macros | |
#define | BUFFER_SIZE 24 |
#define | PADDING_SIZE 8 |
#define | HALF_PADDING_SIZE 4 |
#define | BUFFER_PLUS_PADDING_SIZE (BUFFER_SIZE + PADDING_SIZE) |
#define | BUFFER_PLUS_HALF_PADDING_SIZE (BUFFER_SIZE + HALF_PADDING_SIZE) |
#define BUFFER_PLUS_HALF_PADDING_SIZE (BUFFER_SIZE + HALF_PADDING_SIZE) |
Definition at line 32 of file s_test_helpers.h.
#define BUFFER_PLUS_PADDING_SIZE (BUFFER_SIZE + PADDING_SIZE) |
Definition at line 31 of file s_test_helpers.h.
#define BUFFER_SIZE 24 |
Several tests use a buffer to read back data from an asset. This buffer is larger than the size of the asset data by PADDING_SIZE bytes. This allows us to ensure that the only the expected data is read back and that it is read back correctly.
For example if the buffer and asset are as follows: Buffer - "XXXXXXXXXXXX", Asset data - "AAAA"
Then a correct and successful read would give this result: "XXXXAAAAXXXX" (Assuming a PADDING_SIZE of 8)
Definition at line 27 of file s_test_helpers.h.
#define HALF_PADDING_SIZE 4 |
Definition at line 29 of file s_test_helpers.h.
#define PADDING_SIZE 8 |
Definition at line 28 of file s_test_helpers.h.