hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2014, STMicroelectronics International N.V.
 * All rights reserved.
 */
 
#ifndef USER_TA_HEADER_DEFINES_H
#define USER_TA_HEADER_DEFINES_H
 
#include <stdint.h>
#include <ta_os_test.h>
#include <user_ta_header.h>
 
#define TA_UUID TA_OS_TEST_UUID
 
#define TA_FLAGS (TA_FLAG_USER_MODE | TA_FLAG_EXEC_DDR | \
         TA_FLAG_MULTI_SESSION)
 
#define TA_STACK_SIZE (8 * 1024)
#define TA_DATA_SIZE (900 * 1024)
 
#define TA_CURRENT_TA_EXT_PROPERTIES \
   { "myprop.true", USER_TA_PROP_TYPE_BOOL, &(const bool){ true } }, \
   { "myprop.42",   USER_TA_PROP_TYPE_U32,  &(const uint32_t){ 42 } }, \
   { "myprop.123",  USER_TA_PROP_TYPE_UUID, \
       &(const TEE_UUID) {1, 2, 3 } }, \
   { "myprop.1234", USER_TA_PROP_TYPE_IDENTITY, \
       &(const TEE_Identity) { 1, { 2, 3, 4 } } }, \
   { "myprop.hello", USER_TA_PROP_TYPE_STRING, \
       "hello property, larger than 80 characters, so that it checks that it is not truncated by anything in the source code which may be wrong" }, \
   { "myprop.binaryblock", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "SGVsbG8gd29ybGQh" }, \
   { "myprop.binaryblock.1byte-ones", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "/w==" }, \
   { "myprop.binaryblock.2byte-ones", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "//8=" }, \
   { "myprop.binaryblock.3byte-ones", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "////" }, \
   { "myprop.binaryblock.4byte-ones", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "/////w==" }, \
   { "myprop.binaryblock.empty1", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "" }, \
   { "myprop.binaryblock.empty2", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "====" }, \
   { "myprop.binaryblock.empty3", USER_TA_PROP_TYPE_BINARY_BLOCK, \
      "-%@&" /* Only invalid code */},
#endif