TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ps_rollback_protection_testsuite.c File Reference
#include "ps_tests.h"
#include <stdio.h>
#include "nv_counters/ps_nv_counters.h"
#include "test_ps_nv_counters.h"
#include "psa/protected_storage.h"
#include "tfm_memory_utils.h"
#include "s_test_helpers.h"
#include "tfm_ps_test_service_api.h"
#include "test_framework_helpers.h"
Include dependency graph for ps_rollback_protection_testsuite.c:

Go to the source code of this file.

Macros

#define TEST_UID
 
#define WRITE_DATA   "THE_FIVE_BOXING_WIZARDS_JUMP_QUICKLY"
 
#define WRITE_DATA_SIZE   (sizeof(WRITE_DATA) - 1)
 
#define READ_DATA   "############################################"
 
#define RESULT_DATA   ("####" WRITE_DATA "####")
 

Functions

void register_testsuite_s_rollback_protection (struct test_suite_t *p_test_suite)
 Register testsuite for the ps rollback protection tests. More...
 

Macro Definition Documentation

#define READ_DATA   "############################################"

Definition at line 34 of file ps_rollback_protection_testsuite.c.

#define RESULT_DATA   ("####" WRITE_DATA "####")

Definition at line 35 of file ps_rollback_protection_testsuite.c.

#define TEST_UID
Value:
2UL /* UID 1 cannot be used as it references a write once
* asset, created in psa_ps_s_interface_testsuite.c
*/

Definition at line 27 of file ps_rollback_protection_testsuite.c.

#define WRITE_DATA   "THE_FIVE_BOXING_WIZARDS_JUMP_QUICKLY"

Definition at line 32 of file ps_rollback_protection_testsuite.c.

#define WRITE_DATA_SIZE   (sizeof(WRITE_DATA) - 1)

Definition at line 33 of file ps_rollback_protection_testsuite.c.

Function Documentation

void register_testsuite_s_rollback_protection ( struct test_suite_t p_test_suite)

Register testsuite for the ps rollback protection tests.

Parameters
[in]p_test_suiteThe test suite to be executed.

Definition at line 93 of file ps_rollback_protection_testsuite.c.

Here is the call graph for this function: