blob: c12f61bfe33250a816f6389ed566e34c65482e1f (
plain) (
blame)
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
|
/* An example test TA implementation.
*/
#ifndef __TRUSTZONE_SEJ_TA__
#define __TRUSTZONE_SEJ_TA__
#define TZ_CRYPTO_TA_UUID "0d5fe516-821d-11e2-bdb4-d485645c4311"
/* Data Structure for Test TA */
/* You should define data structure used both in REE/TEE here
N/A for Test TA */
/* Command for Test TA */
#define TZCMD_HACC_INIT 0
#define TZCMD_HACC_INTERNAL 1
#define TZCMD_SECURE_ALGO 2
typedef struct _ta_crypto_data_ {
unsigned int size;
unsigned char bAC;
unsigned int user; /* HACC_USER */
unsigned char bDoLock;
unsigned int aes_type; /* AES_OPS */
unsigned char bEn;
} ta_crypto_data;
typedef struct _ta_secure_algo_data_ {
unsigned char direction;
unsigned int contentAddr;
unsigned int contentLen;
unsigned char *customSeed;
unsigned char *resText;
} ta_secure_algo_data;
#endif /* __TRUSTZONE_SEJ_TA_TEST__ */
|