Using OP-TEE to decrypt AES on Orin NX

I would like to use the AES decryption example in my application. As per the documentation of OP TEE in this link, there is a sample for optee_example_aes and the GitHub repo at this link also has the code for it.

However, when I try to compile the application and run it, it’s unable to find the corresponding TA file. In my path, I only have the following:

orin-nx8@ubuntu:/lib/optee_armtz$ l
023f8f1a-292a-432b-8fc4-de8471358067.ta  5c206987-16a3-59cc-ab0f-64b9cfc9e758.ta  a720ccbb-51da-417d-b82e-e5445d474a7a.ta  e13010e0-2ae1-11e5-896a-0002a5d5c51b.ta
02a42f43-d8b7-4a57-aa4d-87bd9b5587cb.ta  5ce0c432-0ab0-40e5-a056-782ca0e6aba2.ta  b3091a65-9751-4784-abf7-0298a7cc35ba.ta  e6a33ed4-562b-463a-bb7e-ff5e15a493c8.ta
25497083-a58a-4fc5-8a72-1ad7b69b8562.ta  731e279e-aafb-4575-a771-38caa6f0cca6.ta  b689f2a7-8adf-477a-9f99-32e90c0ad0a2.ta  f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c.ta
380231ac-fb99-47ad-a689-9e017eb6e78a.ta  82154947-c1bc-4bdf-b89d-04f93c0ea97c.ta  c3f6e2c0-3548-11e1-b86c-0800200c9a66.ta  f157cda0-550c-11e5-a6fa-0002a5d5c51b.ta
528938ce-fc59-11e8-8eb2-f2801f1b9fd1.ta  873bcd08-c2c3-11e6-a937-d0bf9c45c61c.ta  cb3e5ba0-adf1-11e0-998b-0002a5d5c51b.ta  fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta
5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.ta  a4c04d50-f180-11e8-8eb2-f2801f1b9fd1.ta  d17f73a0-36ef-11e1-984a-0002a5d5c51b.ta  ffd2bded-ab7d-4988-95ee-e4962fff7154.ta

Whereas, the UUID for the AES example is 5dbac793-f574-4871-8ad3-04331ec17f24 can you please tell me where do I find this file, or how can I generate this TA so that I can use it with my application? thanks!

hello hatake_kakashi,

it should be.. aes_ta.c, here’s the header file, aes_ta.h.
let me re-cap the UUID as below for your reference.

/* UUID of the AES example trusted application */
#define TA_AES_UUID \
	{ 0x5dbac793, 0xf574, 0x4871, \
		{ 0x8a, 0xd3, 0x04, 0x33, 0x1e, 0xc1, 0x7f, 0x24 } }

Hi thanks for response but where do I find the TA file? Because I will need it for linking against my application right?

if not, can you please share the steps to the application without using TA file? Thanks.

hello hatake_kakashi,

did you meant generating the TA file? please refer to build instructions.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.