ta_hacc.h 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* An example test TA implementation.
  2. */
  3. #ifndef __TRUSTZONE_SEJ_TA__
  4. #define __TRUSTZONE_SEJ_TA__
  5. #define TZ_CRYPTO_TA_UUID "0d5fe516-821d-11e2-bdb4-d485645c4311"
  6. /* Data Structure for Test TA */
  7. /* You should define data structure used both in REE/TEE here
  8. N/A for Test TA */
  9. /* Command for Test TA */
  10. #define TZCMD_HACC_INIT 0
  11. #define TZCMD_HACC_INTERNAL 1
  12. #define TZCMD_SECURE_ALGO 2
  13. #define TZCMD_GET_UUID 3
  14. typedef struct _ta_crypto_data_ {
  15. unsigned int size;
  16. unsigned char bAC;
  17. unsigned int user; /* HACC_USER */
  18. unsigned char bDoLock;
  19. unsigned int aes_type; /* AES_OPS */
  20. unsigned char bEn;
  21. } ta_crypto_data;
  22. typedef struct _ta_secure_algo_data_ {
  23. unsigned char direction;
  24. unsigned int contentAddr;
  25. unsigned int contentLen;
  26. unsigned char *customSeed;
  27. unsigned char *resText;
  28. } ta_secure_algo_data;
  29. #endif /* __TRUSTZONE_SEJ_TA_TEST__ */