aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMate Toth-Pal <mate.toth-pal@arm.com>2021-05-12 10:13:10 +0200
committerAnton Komlev <Anton.Komlev@arm.com>2021-05-21 13:18:07 +0200
commit9974f0a675c1423573d9c6a70d54a54688df6a34 (patch)
tree3c8ac90c5d23f8e7e6fc7b9fcf3463a5b4ee500e /tools
parent7e9d6d3dd7208e563067f8d12e1d667f1aaecf74 (diff)
downloadtrusted-firmware-m-9974f0a675c1423573d9c6a70d54a54688df6a34.tar.gz
TF-Fuzz: Update boilerplate to be compatible with latest TF-M
Change-Id: I7231ae6096875bf95ebfce7868a695e705fd4cbb Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/tf_fuzz/lib/tfm_boilerplate.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/tf_fuzz/lib/tfm_boilerplate.txt b/tools/tf_fuzz/lib/tfm_boilerplate.txt
index 2464635cb..dcec0865b 100644
--- a/tools/tf_fuzz/lib/tfm_boilerplate.txt
+++ b/tools/tf_fuzz/lib/tfm_boilerplate.txt
@@ -41,14 +41,10 @@ Four extremely important things about this file:
#include <string.h>
#include <stdint.h>
-#include "../sst/non_secure/ns_test_helpers.h"
#include "psa/protected_storage.h"
-#include "test/framework/test_framework_helpers.h"
-#include "tfm_memory_utils.h"
#include "psa/crypto.h"
-#include "psa/crypto_sizes.h"
+#include "test_framework.h"
`001
-#include <stdint.h>
static uint32_t shift_reg = 0x55555555;
static int i; /* generic counter variable */
@@ -171,7 +167,7 @@ void test_thread (struct test_result_t *ret) {
return;
}
/* Check that the data is correct */
- if (tfm_memcmp($act_data, $exp_data,
+ if (memcmp($act_data, $exp_data,
$length) != 0) {
TEST_FAIL("Read data should be equal to result data");
return;
@@ -182,7 +178,7 @@ void test_thread (struct test_result_t *ret) {
for (i = 0; i < strlen((char *) $act_data_var); ++i) {
crc_byte ($act_data_var[i]);
}
- $hash_var = shift_reg;
+ /* $hash_var = shift_reg; */
`029
sst_status = psa_ps_remove($uid);
`030
@@ -270,7 +266,7 @@ void test_thread (struct test_result_t *ret) {
}
`056
/* Check that the data is correct */
- if (tfm_memcmp($act_data, $exp_data,
+ if (memcmp($act_data, $exp_data,
$length) != 0) {
TEST_FAIL("Read data should be equal to result data");
return;